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); } }