From ffa37218571be0927dce9f6d89584017d4b9b889 Mon Sep 17 00:00:00 2001 From: heduo Date: Sun, 28 Apr 2024 16:54:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(hd):=20=E8=A7=92=E8=89=B2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=BB=98=E8=AE=A4=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 8340d94..573f928 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -142,6 +142,11 @@ export const useUserStore = defineStore({ routes.forEach((route) => { router.addRoute(route as unknown as RouteRecordRaw); }); + if (routes.findIndex((v) => v.path === '/supplierInfoManage') !== -1) { + userInfo.homePath = '/supplierInfoManage/index'; + } else { + userInfo.homePath = '/RegionalSpotManage/index'; + } router.addRoute(PAGE_NOT_FOUND_ROUTE as unknown as RouteRecordRaw); permissionStore.setDynamicAddedRoute(true); } -- 2.24.1