fix(projects): fix router guide [修复路由跳转异常] fixed #216
This commit is contained in:
parent
397092c21f
commit
5957833a4f
@ -107,6 +107,7 @@ export const useRouteStore = defineStore('route-store', {
|
|||||||
},
|
},
|
||||||
/** 初始化动态路由 */
|
/** 初始化动态路由 */
|
||||||
async initDynamicRoute() {
|
async initDynamicRoute() {
|
||||||
|
const { resetAuthStore } = useAuthStore();
|
||||||
const { initHomeTab } = useTabStore();
|
const { initHomeTab } = useTabStore();
|
||||||
|
|
||||||
const { userId } = localStg.get('userInfo') || {};
|
const { userId } = localStg.get('userInfo') || {};
|
||||||
@ -125,6 +126,8 @@ export const useRouteStore = defineStore('route-store', {
|
|||||||
initHomeTab(data.home, router);
|
initHomeTab(data.home, router);
|
||||||
|
|
||||||
this.isInitAuthRoute = true;
|
this.isInitAuthRoute = true;
|
||||||
|
} else {
|
||||||
|
resetAuthStore();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 初始化静态路由 */
|
/** 初始化静态路由 */
|
||||||
|
Loading…
Reference in New Issue
Block a user