From cce027fe1cf767b5936c9e64fa0cfa5260f0b93c Mon Sep 17 00:00:00 2001 From: dengbf Date: Mon, 6 Nov 2023 14:34:15 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=9D=83=E9=99=90bug=20=20-=20[=E5=85=B3=E8=81=94]=20#[1016585?= =?UTF-8?q?190342656]=E5=B7=A5=E5=8D=95=E4=B8=8A=E6=8A=A5-=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=9F=A5=E8=AF=86=E5=BA=93=E5=9F=BA=E7=A1=80=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E5=9C=A8=E5=B7=A5=E5=8D=95=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=85=B3=E9=94=AE=E5=AD=97=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=9F=A5=E8=AF=86=EF=BC=8C=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=BC=82=E5=B8=B8=20http://192.168.0.96:8090?= =?UTF-8?q?/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1016?= =?UTF-8?q?585190342656?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/store/modules/topMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/store/modules/topMenu.js b/src/resources/store/modules/topMenu.js index 7e4c42df9..cc7e52b35 100644 --- a/src/resources/store/modules/topMenu.js +++ b/src/resources/store/modules/topMenu.js @@ -58,7 +58,7 @@ const actions = { const authorizedMenuList = getMenuList(routerConfig[moduleId], authList, moduleId); const menuGroupList = sortMenuList(authorizedMenuList, moduleId, menuConfigList); if (routerConfig[moduleId]) { - const hasAuthorizedDynamicMenu = routerConfig[moduleId].some(route => route.meta && route.meta.istitle && authList.length > 0); + const hasAuthorizedDynamicMenu = routerConfig[moduleId].some(route => route.meta && route.meta.istitle && authList.length > 0 && authList.includes(route.meta.authority)); if (((hasAuthorizedDynamicMenu || authorizedMenuList.length > 0) && !showModuleList) || (showModuleList && (hasAuthorizedDynamicMenu || authorizedMenuList.length > 0) && showModuleList.indexOf(moduleId) > -1 && authList.length > 0)) { //有权限菜单的模块才让显示 moduleList.push({ moduleId, moduleName, menuGroupList, description, isDefault, defaultPage }); -- Gitee