Finish Hotfix-1

This commit is contained in:
mzl
2025-07-21 14:50:30 +08:00
+1 -1
View File
@@ -102,7 +102,7 @@ class PermLogic
// component 字段规则:
// 1. 存在子菜单,固定 '/index/index'
// 2. 否则为当前完整路径(或其它你想要的)
$componentValue = $hasChildrenMenu && !$node->url ? '/index/index' : $currentPath;
$componentValue = ($hasChildrenMenu && !$node->url && $node->type !== 'directory') ? '/index/index' : $currentPath;
$tree[] = [
'id' => $node->id,