mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 完善菜单返回数据
This commit is contained in:
parent
5804e919bb
commit
f53c275ab0
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user