@@@@@@
This commit is contained in:
18
library/components/VabApp/index.vue
Normal file
18
library/components/VabApp/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<el-config-provider :button="{ autoInsertSpace: true }" :locale="locale">
|
||||
<router-view />
|
||||
<vab-update v-if="pwa" />
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { pwa } from '/@/config'
|
||||
import { enLocale, zhLocale } from '/@/i18n'
|
||||
|
||||
defineOptions({
|
||||
name: 'VabApp',
|
||||
})
|
||||
|
||||
const { locale: language } = useI18n()
|
||||
const locale = computed(() => (language.value === 'en' ? enLocale : zhLocale))
|
||||
</script>
|
||||
Reference in New Issue
Block a user