k5web/src/App.vue

24 lines
573 B
Vue
Raw Normal View History

2024-01-24 13:40:15 +00:00
<template>
<a-config-provider :locale="locale">
<router-view />
<global-setting />
</a-config-provider>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
import GlobalSetting from '@/components/global-setting/index.vue';
import useLocale from '@/hooks/locale';
const { currentLocale } = useLocale();
const locale = computed(() => {
switch (currentLocale.value) {
case 'zh-CN':
return zhCN;
default:
2024-01-24 15:02:15 +00:00
return zhCN;
2024-01-24 13:40:15 +00:00
}
});
</script>