fix:动态路由首页404

This commit is contained in:
lapislazulisch 2023-08-23 15:41:40 +08:00
parent 94179ae552
commit 3db549af40

View File

@ -119,9 +119,9 @@ export const useRouteStore = defineStore('route-store', {
const { error, data } = await fetchUserRoutes(userId);
if (!error) {
this.handleAuthRoute(sortRoutes(data.routes));
this.routeHomeName = data.home;
this.handleUpdateRootRedirect(data.home);
this.handleAuthRoute(sortRoutes(data.routes));
initHomeTab(data.home, router);