|
|
@ -96,7 +96,7 @@ const refreshRouter = async () => { |
|
|
|
const serverRoutes = Object.assign([], remoteRoutes); |
|
|
|
if (appStore.user.roles.some((o) => o === "物流")) { |
|
|
|
const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data"); |
|
|
|
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou"); |
|
|
|
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian"); |
|
|
|
} |
|
|
|
const setPermission = (list, parent = null) => { |
|
|
|
list.forEach((o) => { |
|
|
|