19 lines
433 B
Vue
19 lines
433 B
Vue
<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>
|