update application/admin/controller/Auth.php.

构建适用前端的权限数据方法,字段名有误!
This commit is contained in:
数学家 2020-03-27 00:02:13 +08:00 committed by Gitee
parent a2e7ebffa6
commit e7d424143a

View File

@ -239,7 +239,7 @@ class Auth extends Base {
private function buildList($list, $rules) {
$newList = [];
foreach ($list as $key => $value) {
$newList[$key]['title'] = $value['name'];
$newList[$key]['title'] = $value['title'];
$newList[$key]['key'] = $value['url'];
if (isset($value['children'])) {
$newList[$key]['expand'] = true;