Merge branch 'develop' into feature/mzl_dev_curd

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