fix(projects): 修复tabs在static路由模式下可以关闭首页

This commit is contained in:
燕博文 2022-11-29 15:12:59 +08:00
parent 810398abb8
commit 7211a17a81

View File

@ -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;
},
/** 初始化权限路由 */