修改菜单获取方式

This commit is contained in:
mzl
2025-07-22 09:52:06 +08:00
parent 701389ddd8
commit f9cafed07c
+1 -1
View File
@@ -153,7 +153,7 @@ class PermLogic
// —— 递归构建子节点 —— // —— 递归构建子节点 ——
$children = []; $children = [];
if ($node->type === 'directory') { if (in_array($node->type, ['directory', 'menu'])) {
$children = $this->buildTree($resources, $node->id, $currentPath); $children = $this->buildTree($resources, $node->id, $currentPath);
} }