diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 8340d94684c84b8485c51540acc50193e0c00fa0..573f9286693f2b5bc6dbd01e469d8ae14a62ecc7 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); }