修改菜单获取方式
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user