|
|
|
@ -157,7 +157,10 @@ public class MenuServiceImpl implements MenuService {
|
|
|
|
|
|
|
|
|
|
|
|
// 3. 继续遍历 parent 节点
|
|
|
|
// 3. 继续遍历 parent 节点
|
|
|
|
MenuDO parent = menuMap.get(parentId);
|
|
|
|
MenuDO parent = menuMap.get(parentId);
|
|
|
|
if (parent == null || isMenuDisabled(parent, menuMap, disabledMenuCache)) {
|
|
|
|
if (parent == null) {
|
|
|
|
|
|
|
|
return false; // 父节点不存在,直接终止递归
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isMenuDisabled(parent, menuMap, disabledMenuCache)) {
|
|
|
|
disabledMenuCache.add(node.getId());
|
|
|
|
disabledMenuCache.add(node.getId());
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|