From aed81672a2a2e0df9ed27ce22a8e8988b2289539 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 14 Aug 2025 19:49:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B3=BB=E7=BB=9F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=B8=BB=E9=A1=B5=E9=87=8D=E5=A4=8D=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 +++ src/views/index.vue | 13 ++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5f8c12ec..6fe6546f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,8 @@ import advancedFormat from 'dayjs/plugin/advancedFormat'; import useLayoutStore from '@/store/modules/layout'; import useAppStore from '@/store/modules/app'; import useI18n from '@/hooks/useI18n'; +import { CACHE_LOCAL_PROCONFIG } from './constants/cache-keys-constants'; +import { localRemove } from './utils/cache-local-utils'; const { t, currentLocale } = useI18n(); const { themeConfig, initPrimaryColor, changeConf } = useLayoutStore(); dayjs.extend(advancedFormat); @@ -34,6 +36,7 @@ onBeforeMount(() => { maxCount: 15, }); initPrimaryColor(); + localRemove(CACHE_LOCAL_PROCONFIG); // 输出应用版本号 const appStore = useAppStore(); diff --git a/src/views/index.vue b/src/views/index.vue index 5eec1294..9953acc1 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -3,7 +3,6 @@ import Index from '@/views/index/tenantIndex.vue'; import { getConfigKey } from '@/api/system/config'; import { defineAsyncComponent, - nextTick, onMounted, ref, shallowRef, @@ -50,14 +49,10 @@ onMounted(() => { useLayoutStore().changeConf('menuTheme', 'light'); useLayoutStore().changeConf('tabRender', false); } else { - useLayoutStore().changeConf('layout', 'mix'); - useLayoutStore().changeConf('menuTheme', 'light'); - useLayoutStore().changeConf('tabRender', true); - - // location.replace(location.origin); - router.replace({ name: 'Monitor_2087' }).finally(() => { - nextTick(() => location.reload()); - }); + // currentComponent.value = defineAsyncComponent( + // () => import('@/views/dashboard/overview/index.vue') + // ); + router.replace({ name: 'Monitor_2087' }); return; useLayoutStore().changeConf('layout', 'mix'); //获取当前系统设置的首页路径