From e8c83e6bc615aedfe9367f38958830441ae2e5b8 Mon Sep 17 00:00:00 2001 From: AN <1983933789@qq.com> Date: Fri, 16 May 2025 16:16:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B9=E7=9B=AE=E5=BD=95=E6=83=85?= =?UTF-8?q?=E5=86=B5=E7=89=B9=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index 3f6e7c96..3d0e52a3 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -72,6 +72,13 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { routes.forEach(route => { if (authRouteMode.value === 'dynamic') { + if (route.path === '/') { + route.children?.forEach(child => { + parseRouter(child); + authRoutesMap.set(child.name, child); + }); + return; + } parseRouter(route); } authRoutesMap.set(route.name, route);