Skip to content

Commit

Permalink
fix(projects): fix router guide [修复路由跳转异常] fixed #216
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Apr 20, 2023
1 parent 397092c commit 5957833
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/modules/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const useRouteStore = defineStore('route-store', {
},
/** 初始化动态路由 */
async initDynamicRoute() {
const { resetAuthStore } = useAuthStore();
const { initHomeTab } = useTabStore();

const { userId } = localStg.get('userInfo') || {};
Expand All @@ -125,6 +126,8 @@ export const useRouteStore = defineStore('route-store', {
initHomeTab(data.home, router);

this.isInitAuthRoute = true;
} else {
resetAuthStore();
}
},
/** 初始化静态路由 */
Expand Down

1 comment on commit 5957833

@vercel
Copy link

@vercel vercel bot commented on 5957833 Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.