Merge pull request #5 from qingmang/patch-2

设置departments获取的默认值
This commit is contained in:
JaguarJack 2020-07-15 14:55:23 +08:00 committed by GitHub
commit ce38bc741b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ class Role extends CatchController
// 更新department
$hasDepartmentIds = $role->getDepartments()->column('id');
$departmentIds = $request->param('departments');
$departmentIds = $request->param('departments',[]);
// 已存在部门 IDS
$existedDepartmentIds = [];