mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化返回
This commit is contained in:
parent
21e200d1e3
commit
d1788b9fe0
@ -20,7 +20,10 @@ class Menu extends Base {
|
||||
$list = ApiMenu::all();
|
||||
$list = json_decode(json_encode($list), true);
|
||||
$list = formatTree(listToTree($list));
|
||||
return $this->buildSuccess($list, '登录成功');
|
||||
|
||||
return $this->buildSuccess([
|
||||
'list' => $list
|
||||
], '登录成功');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user