update:优化基础组件

This commit is contained in:
JaguarJack
2021-04-20 08:45:08 +08:00
parent be91cfbc4f
commit ceb5a396d8
7 changed files with 60 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ class CatchModelCollection extends Collection
*/
public function toTree($pid = 0, $pidField = 'parent_id', $children = 'children'): array
{
return Tree::done($this->items, $pid, $pidField, $children);
return Tree::done($this->toArray(), $pid, $pidField, $children);
}