fix(components): 修复动态路由home页404
This commit is contained in:
parent
3ae1952624
commit
ad6ac7222c
@ -120,7 +120,7 @@ export const useRouteStore = defineStore('route-store', {
|
|||||||
|
|
||||||
if (!error) {
|
if (!error) {
|
||||||
this.handleAuthRoute(sortRoutes(data.routes));
|
this.handleAuthRoute(sortRoutes(data.routes));
|
||||||
// sadwhinpm
|
// home相关处理需要在最后,否则会出现找不到主页404的情况
|
||||||
this.routeHomeName = data.home;
|
this.routeHomeName = data.home;
|
||||||
this.handleUpdateRootRedirect(data.home);
|
this.handleUpdateRootRedirect(data.home);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user