diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index c9a757c89..c1f38c49e 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -128,9 +128,14 @@ export const useRouteStore = defineStore('route-store', { }, /** 初始化静态路由 */ async initStaticRoute() { + const { initHomeTab } = useTabStore(); const auth = useAuthStore(); + const routes = filterAuthRoutesByUserPermission(staticRoutes, auth.userInfo.userRole); this.handleAuthRoute(routes); + + initHomeTab(this.routeHomeName, router); + this.isInitAuthRoute = true; }, /** 初始化权限路由 */