fix(菜单): 顶部菜单 license 判断
--bug=1048528 --user=白奇 [系统设置]GitHub#33996 顶部的菜单栏会显示License按钮 https://www.tapd.cn/55049933/s/1606097
This commit is contained in:
parent
c636b75bbc
commit
5562e57f63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue