From ed9dd82902537a9345b074b05e2ec89edb23a522 Mon Sep 17 00:00:00 2001 From: cxr <2059387846@qq.com> Date: Fri, 10 May 2024 11:51:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(cxr)=EF=BC=9A=20=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E4=B8=8D=E8=B7=B3=E8=BD=AC=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=EF=BC=8C=E5=B7=A5=E4=BD=9C=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=AA=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 6de5e54..0d8575c 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -150,10 +150,12 @@ 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'; + userInfo.homePath = '/product'; } router.addRoute(PAGE_NOT_FOUND_ROUTE as unknown as RouteRecordRaw); permissionStore.setDynamicAddedRoute(true); -- 2.24.1