提交
This commit is contained in:
1 parent
31be9bfd95
commit
843e13bce3
722 files changed
+288067
-110680
No files matched your search
@@ -133,7 +133,7 @@ export class MenuProcessor {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 menu code 过滤菜单(仅补齐顶级父菜单)
|
||||
* 根据 menu code 过滤菜单(目录节点在有可见子菜单时保留)
|
||||
*/
|
||||
private filterMenuByCodes(
|
||||
menu: AppRouteRecord[],
|
||||
@@ -150,7 +150,7 @@ export class MenuProcessor {
|
||||
|
||||
const shouldKeep =
|
||||
hasSelfPermission ||
|
||||
(level === 1 && Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
(Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
|
||||
if (shouldKeep) {
|
||||
acc.push({
|
||||
|
||||
Reference in new issue
Block a user