diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index d3b0e74c..7341ba1d 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -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);