Merge pull request #271 from lapislazulisch/dynamicRoute

Dynamic route
This commit is contained in:
Soybean
2023-08-31 00:31:40 +08:00
committed by GitHub

View File

@@ -119,9 +119,10 @@ export const useRouteStore = defineStore('route-store', {
const { error, data } = await fetchUserRoutes(userId);
if (!error) {
this.handleAuthRoute(sortRoutes(data.routes));
// home相关处理需要在最后否则会出现找不到主页404的情况
this.routeHomeName = data.home;
this.handleUpdateRootRedirect(data.home);
this.handleAuthRoute(sortRoutes(data.routes));
initHomeTab(data.home, router);