This commit is contained in:
JaguarJack
2023-01-17 18:19:25 +08:00
parent ed10349317
commit e3dd4ee86c
4 changed files with 29 additions and 6 deletions

View File

@@ -20,7 +20,6 @@ class RolesController extends Controller
) {
}
/**
* @return mixed
*/
@@ -29,7 +28,7 @@ class RolesController extends Controller
return $this->model->setBeforeGetList(function ($query) {
return $query->with(['permissions' => function ($query) {
$query->select('id');
}])->dataRange();
}]);
})->getList();
}