🔖 项目重命名.
This commit is contained in:
31
orion-visor-ui/src/App.vue
Normal file
31
orion-visor-ui/src/App.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<a-config-provider :locale="locale">
|
||||
<router-view />
|
||||
<app-setting ref="appSettingRef" />
|
||||
</a-config-provider>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, provide, ref } from 'vue';
|
||||
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
|
||||
import AppSetting from '@/components/app/setting/index.vue';
|
||||
import useLocale from '@/hooks/locale';
|
||||
import { openAppSettingKey } from '@/types/symbol';
|
||||
|
||||
const { currentLocale } = useLocale();
|
||||
const locale = computed(() => {
|
||||
switch (currentLocale.value) {
|
||||
case 'zh-CN':
|
||||
return zhCN;
|
||||
default:
|
||||
return zhCN;
|
||||
}
|
||||
});
|
||||
|
||||
// 对外暴露打开配置方法
|
||||
const appSettingRef = ref();
|
||||
provide(openAppSettingKey, () => {
|
||||
appSettingRef.value.open();
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user