modified 完善菜单返回数据

This commit is contained in:
zhaoxiang 2020-03-18 18:12:30 +08:00
parent 5804e919bb
commit f53c275ab0

View File

@ -23,10 +23,9 @@ class Menu extends Base {
$origin = (new AdminMenu)->order('sort', 'ASC')->select();
$origin = Tools::buildArrFromObj($origin);
$list = Tools::listToTree($origin);
$choose = Tools::formatTree($list);
return $this->buildSuccess([
'list' => $list,
'choose' => $choose
'list' => $list
]);
}