From d4e879f3bcc05462680978c7204d85b4e6c1456f Mon Sep 17 00:00:00 2001 From: zhouhongjun <565221961@qq.com> Date: Tue, 21 Nov 2023 11:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=8A=A1=E8=A7=92?= =?UTF-8?q?=E8=89=B2=EF=BC=8C=E5=8F=AF=E6=9F=A5=E7=9C=8B=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host/SettleAccount.HttpApi.Host/wwwroot/router/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js index b35773b3..ee8f543a 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js @@ -96,12 +96,16 @@ 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" && o.path !== "yin-du-jian"); + baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian" && o.path !== "bei-jian-show" && o.path !== "xiao-shou-show" && o.path !== "yin-du-jian-show"); } if (appStore.user.roles.some((o) => o === "admin")) { const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data"); baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian-show" && o.path !== "xiao-shou-show" && o.path !== "yin-du-jian-show"); } + 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" && o.path !== "yin-du-jian"); + } const setPermission = (list, parent = null) => { list.forEach((o) => { // full path