@@ -2,6 +2,7 @@
namespace app\common\model;
+use fast\Tree;
use think\Model;
/**
@@ -96,6 +97,7 @@ class Category extends Model
})->order('weigh', 'desc')->select())->toArray();
}
+ $list = Tree::instance()->init($list, 'pid');
return $list;