mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): fix router guide [修复路由跳转异常] fixed #216
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 初始化静态路由 */
|
/** 初始化静态路由 */
|
||||||
|
Reference in New Issue
Block a user