|
|
@@ -2,7 +2,7 @@
|
|
|
<el-config-provider :size="getGlobalComponentSize" :locale="getGlobalI18n">
|
|
|
<router-view v-show="setLockScreen" />
|
|
|
<LockScreen v-if="themeConfig.isLockScreen" />
|
|
|
- <Setings ref="setingsRef" v-show="setLockScreen" />
|
|
|
+ <Settings ref="settingsRef" v-show="setLockScreen" />
|
|
|
<CloseFull v-if="!themeConfig.isLockScreen" />
|
|
|
<!-- <Upgrade v-if="needUpdate" /> -->
|
|
|
<!-- <Sponsors /> -->
|
|
|
@@ -20,20 +20,20 @@ import other from '/@/utils/other';
|
|
|
import { Local, Session } from '/@/utils/storage';
|
|
|
import mittBus from '/@/utils/mitt';
|
|
|
import setIntroduction from '/@/utils/setIconfont';
|
|
|
-import Watermark from '/@/utils/watermark';
|
|
|
+// import Watermark from '/@/utils/watermark';
|
|
|
import { SysConfigApi } from '/@/api-services';
|
|
|
import { getAPI } from '/@/utils/axios-utils';
|
|
|
|
|
|
// 引入组件
|
|
|
const LockScreen = defineAsyncComponent(() => import('/@/layout/lockScreen/index.vue'));
|
|
|
-const Setings = defineAsyncComponent(() => import('/@/layout/navBars/topBar/setings.vue'));
|
|
|
+const Settings = defineAsyncComponent(() => import('/@/layout/navBars/topBar/settings.vue'));
|
|
|
const CloseFull = defineAsyncComponent(() => import('/@/layout/navBars/topBar/closeFull.vue'));
|
|
|
// const Upgrade = defineAsyncComponent(() => import('/@/layout/upgrade/index.vue'));
|
|
|
// const Sponsors = defineAsyncComponent(() => import('/@/layout/sponsors/index.vue'));
|
|
|
|
|
|
// 定义变量内容
|
|
|
const { messages, locale } = useI18n();
|
|
|
-const setingsRef = ref();
|
|
|
+const settingsRef = ref();
|
|
|
const route = useRoute();
|
|
|
const stores = useTagsViewRoutes();
|
|
|
const storesThemeConfig = useThemeConfig();
|
|
|
@@ -80,8 +80,8 @@ onBeforeMount(() => {
|
|
|
onMounted(() => {
|
|
|
nextTick(() => {
|
|
|
// 监听布局配'置弹窗点击打开
|
|
|
- mittBus.on('openSetingsDrawer', () => {
|
|
|
- setingsRef.value.openDrawer();
|
|
|
+ mittBus.on('openSettingsDrawer', () => {
|
|
|
+ settingsRef.value.openDrawer();
|
|
|
});
|
|
|
// 获取缓存中的布局配置
|
|
|
if (Local.get('themeConfig')) {
|
|
|
@@ -96,7 +96,7 @@ onMounted(() => {
|
|
|
});
|
|
|
// 页面销毁时,关闭监听布局配置/i18n监听
|
|
|
onUnmounted(() => {
|
|
|
- mittBus.off('openSetingsDrawer', () => {});
|
|
|
+ mittBus.off('openSettingsDrawer', () => {});
|
|
|
});
|
|
|
// 监听路由的变化,设置网站标题
|
|
|
watch(
|