From 3db549af40877efef15f542f8e50299f28f0b040 Mon Sep 17 00:00:00 2001 From: lapislazulisch <108389666+lapislazulisch@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:41:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=A6=96=E9=A1=B5404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 3ae195262473d7c5f0c9b7450398385971b1955c Mon Sep 17 00:00:00 2001 From: lapislazulisch <108389666+lapislazulisch@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:00:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1=E4=B8=BB=E9=A1=B5404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index 7341ba1d..f097c29e 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -120,6 +120,7 @@ export const useRouteStore = defineStore('route-store', { if (!error) { this.handleAuthRoute(sortRoutes(data.routes)); + // sadwhinpm this.routeHomeName = data.home; this.handleUpdateRootRedirect(data.home); From ad6ac7222c0d49a2916fae0e623d932ad925845d Mon Sep 17 00:00:00 2001 From: lapislazulisch <108389666+lapislazulisch@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:03:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1home=E9=A1=B5404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index f097c29e..80db75f5 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -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);