feat: 恢复服务监控菜单入口

This commit is contained in:
zhanjunhao
2026-11-19 10:59:02 +08:00
parent 074c4422f9
commit f88a404fab
6 changed files with 219 additions and 54 deletions
+6
View File
@@ -29,6 +29,12 @@ export const isGroupAllowed = (groups, userGroup) => {
return allowedGroups.includes(getEffectiveUserGroup(userGroup));
};
export const isSidebarModuleVisible = (config, key, userGroup) =>
config?.enabled !== false &&
config?.[key] !== false &&
isGroupAllowed(config?.groups, userGroup) &&
isGroupAllowed(config?.moduleGroups?.[key], userGroup);
export const isHeaderActionButtonVisible = (config, key, userGroup) => {
let buttons = config;