mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
fix:修复子节点组装方法漏传pk的问题 close #I6PQ9X
This commit is contained in:
parent
976f2dbe2c
commit
c4127a82b7
@ -136,7 +136,7 @@ class Tree
|
||||
if (!$data) return [];
|
||||
foreach ($data as $key => $item) {
|
||||
if (array_key_exists($item[$pk], $this->childrens)) {
|
||||
$data[$key]['children'] = $this->getChildren($this->childrens[$item[$pk]]);
|
||||
$data[$key]['children'] = $this->getChildren($this->childrens[$item[$pk]], $pk);
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
|
Loading…
Reference in New Issue
Block a user