设置departments获取的默认值
只有自定义数据才存在departments
This commit is contained in:
parent
5b43786432
commit
98b2d7d31b
@ -96,7 +96,7 @@ class Role extends CatchController
|
||||
|
||||
// 更新department
|
||||
$hasDepartmentIds = $role->getDepartments()->column('id');
|
||||
$departmentIds = $request->param('departments');
|
||||
$departmentIds = $request->param('departments',[]);
|
||||
|
||||
// 已存在部门 IDS
|
||||
$existedDepartmentIds = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user