From d257151718ba81ad56ff368ea52562e10db77087 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Thu, 17 Oct 2024 17:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8A=A0=E8=BD=BD=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 36c29eef..3eca3013 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -10,12 +10,9 @@ import { import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import useUserStore from '@/store/modules/user'; import useLayoutStore from '@/store/modules/layout'; - -const currentComponent = shallowRef( - defineAsyncComponent( - () => import('@/views/configManage/neOverview/index.vue') - ) -); +import useRouterStore from '@/store/modules/router'; +const routerStore = useRouterStore(); +const currentComponent = shallowRef(null); /**匹配views里面所有的.vue或.tsx文件 */ const views = import.meta.glob('../views/**/*.{vue,tsx}') as Record< @@ -39,7 +36,7 @@ function findView(dirName: string): () => Promise { return views[dir]; } } - return () => import('@/views/error/404.vue'); + return () => import('@/views/configManage/neOverview/index.vue'); } onMounted(() => {