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

View File

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