Commit 19f026a8 authored by 于佳豪's avatar 于佳豪

Merge branch 'hd' of http://119.78.67.12/git/root/ops_2024_vue into hd

parents 92792d82 ffa37218
......@@ -2,7 +2,7 @@
VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH = /
VITE_PUBLIC_PATH = 'https://tmallab.cn/ops/'
# Delete console
VITE_DROP_CONSOLE = true
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment