Commit c2a3d1240f2a7a6486f2c3d94226f1c0c5bcf901
1 parent
b46ac885
fix: role menus
Showing
1 changed file
with
4 additions
and
1 deletions
yudao-ui-admin-vue3/src/views/system/role/index.vue
| @@ -314,7 +314,10 @@ const submitScope = async () => { | @@ -314,7 +314,10 @@ const submitScope = async () => { | ||
| 314 | } else if ('menu' === actionScopeType.value) { | 314 | } else if ('menu' === actionScopeType.value) { |
| 315 | const data = ref<PermissionApi.PermissionAssignRoleMenuReqVO>({ | 315 | const data = ref<PermissionApi.PermissionAssignRoleMenuReqVO>({ |
| 316 | roleId: dataScopeForm.id, | 316 | roleId: dataScopeForm.id, |
| 317 | - menuIds: treeRef.value!.getCheckedKeys(false) as unknown as Array<number> | 317 | + menuIds: [ |
| 318 | + ...(treeRef.value!.getCheckedKeys(false) as unknown as Array<number>), | ||
| 319 | + ...(treeRef.value!.getHalfCheckedKeys() as unknown as Array<number>) | ||
| 320 | + ] | ||
| 318 | }) | 321 | }) |
| 319 | await PermissionApi.assignRoleMenuApi(data.value) | 322 | await PermissionApi.assignRoleMenuApi(data.value) |
| 320 | } | 323 | } |