This commit is contained in:
zlwu committed 2026-08-17 20:32:18 +08:00
1 parent 9345cf4ad8
commit c3bd2c00ae
51 files changed
+14486 -15765

No files matched your search

+3 -1
View File
@@ -12,7 +12,9 @@ export function filterVisibleEntries(
opts: { isSuperAdmin: boolean; all: boolean; menuCodes: string[] },
phase: number = BX_MENU_CURRENT_PHASE,
): BxMenuEntry[] {
return BX_MENU_CATALOG.filter((e) => e.phase <= phase && canAccess(e.menuCode, opts))
return BX_MENU_CATALOG.filter(
(e) => !e.hidden && e.phase <= phase && canAccess(e.menuCode, opts),
)
}
export function entryByPath(path: string): BxMenuEntry | undefined {