This commit is contained in:
JaguarJack
2020-07-16 14:35:19 +08:00
5 changed files with 67 additions and 17 deletions

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 = [];