From 5562e57f6349f0610fe36c0688eaf1def801dd01 Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 5 Nov 2024 15:21:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=8F=9C=E5=8D=95):=20=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=20license=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048528 --user=白奇 [系统设置]GitHub#33996 顶部的菜单栏会显示License按钮 https://www.tapd.cn/55049933/s/1606097 --- frontend/src/components/business/ms-top-menu/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/business/ms-top-menu/index.vue b/frontend/src/components/business/ms-top-menu/index.vue index 9adf147589..c51fc732e5 100644 --- a/frontend/src/components/business/ms-top-menu/index.vue +++ b/frontend/src/components/business/ms-top-menu/index.vue @@ -94,9 +94,13 @@ ); } - const filterMenuTopRouter = + let filterMenuTopRouter = currentParent?.children?.filter((item: any) => permission.accessRouter(item) && item.meta?.isTopMenu) || []; - + if (appStore.getPackageType === 'community') { + filterMenuTopRouter = filterMenuTopRouter.filter( + (item) => item.name !== RouteEnum.SETTING_SYSTEM_AUTHORIZED_MANAGEMENT + ); + } appStore.setTopMenus(filterMenuTopRouter); setCurrentTopMenu(name as string); return;