修改前端包结构.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user