修改前端包结构.

This commit is contained in:
lijiahang
2023-10-18 17:11:27 +08:00
parent 284501b3fb
commit 17d11cef21
39 changed files with 107 additions and 36 deletions

View File

@@ -1,16 +1,16 @@
<template>
<a-config-provider :locale="locale">
<router-view />
<global-setting ref="globalSettingRef" />
<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 GlobalSetting from '@/components/global-setting/index.vue';
import AppSetting from '@/components/app/setting/index.vue';
import useLocale from '@/hooks/locale';
import { openGlobalSettingKey } from '@/types/symbol';
import { openAppSettingKey } from '@/types/symbol';
const { currentLocale } = useLocale();
const locale = computed(() => {
@@ -23,9 +23,9 @@
});
// 对外暴露打开配置方法
const globalSettingRef = ref();
provide(openGlobalSettingKey, () => {
globalSettingRef.value.open();
const appSettingRef = ref();
provide(openAppSettingKey, () => {
appSettingRef.value.open();
});
</script>