From c9432799dd0cff96ae078c278d7b54252a536439 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 27 Nov 2023 10:53:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/modules/dynamicRouter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routers/modules/dynamicRouter.ts b/src/routers/modules/dynamicRouter.ts index 1150b18..f6cd44e 100644 --- a/src/routers/modules/dynamicRouter.ts +++ b/src/routers/modules/dynamicRouter.ts @@ -58,7 +58,7 @@ export const initDynamicRouter = async (params?: any) => { if (globalStore.path == item.path) { router.push(globalStore.path); } else { - if (item.path != "/" && index == 1) { + if (item.path != "/") { router.push(item.path); } }