Skip to content

Commit

Permalink
fix(components): 修复动态路由home页404
Browse files Browse the repository at this point in the history
  • Loading branch information
lapislazulisch committed Aug 23, 2023
1 parent 3ae1952 commit ad6ac72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const useRouteStore = defineStore('route-store', {

if (!error) {
this.handleAuthRoute(sortRoutes(data.routes));
// sadwhinpm
// home相关处理需要在最后,否则会出现找不到主页404的情况
this.routeHomeName = data.home;
this.handleUpdateRootRedirect(data.home);

Expand Down

0 comments on commit ad6ac72

Please sign in to comment.