mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
update application/admin/controller/Auth.php.
构建适用前端的权限数据方法,字段名有误!
This commit is contained in:
parent
a2e7ebffa6
commit
e7d424143a
@ -239,7 +239,7 @@ class Auth extends Base {
|
|||||||
private function buildList($list, $rules) {
|
private function buildList($list, $rules) {
|
||||||
$newList = [];
|
$newList = [];
|
||||||
foreach ($list as $key => $value) {
|
foreach ($list as $key => $value) {
|
||||||
$newList[$key]['title'] = $value['name'];
|
$newList[$key]['title'] = $value['title'];
|
||||||
$newList[$key]['key'] = $value['url'];
|
$newList[$key]['key'] = $value['url'];
|
||||||
if (isset($value['children'])) {
|
if (isset($value['children'])) {
|
||||||
$newList[$key]['expand'] = true;
|
$newList[$key]['expand'] = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user