fix(projects): fix router guide [修复路由跳转异常] fixed #216

This commit is contained in:
Soybean 2023-04-21 00:44:40 +08:00
parent 397092c21f
commit 5957833a4f

View File

@ -107,6 +107,7 @@ export const useRouteStore = defineStore('route-store', {
},
/** 初始化动态路由 */
async initDynamicRoute() {
const { resetAuthStore } = useAuthStore();
const { initHomeTab } = useTabStore();
const { userId } = localStg.get('userInfo') || {};
@ -125,6 +126,8 @@ export const useRouteStore = defineStore('route-store', {
initHomeTab(data.home, router);
this.isInitAuthRoute = true;
} else {
resetAuthStore();
}
},
/** 初始化静态路由 */