fix(菜单): 顶部菜单 license 判断

--bug=1048528 --user=白奇 [系统设置]GitHub#33996 顶部的菜单栏会显示License按钮 https://www.tapd.cn/55049933/s/1606097
This commit is contained in:
baiqi 2024-11-05 15:21:33 +08:00 committed by Craftsman
parent c636b75bbc
commit 5562e57f63
1 changed files with 6 additions and 2 deletions

View File

@ -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;