From c2a3d1240f2a7a6486f2c3d94226f1c0c5bcf901 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 8 Dec 2022 12:36:28 +0800 Subject: [PATCH] fix: role menus --- yudao-ui-admin-vue3/src/views/system/role/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/views/system/role/index.vue b/yudao-ui-admin-vue3/src/views/system/role/index.vue index 5ff8543f5..550c4af04 100644 --- a/yudao-ui-admin-vue3/src/views/system/role/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/role/index.vue @@ -314,7 +314,10 @@ const submitScope = async () => { } else if ('menu' === actionScopeType.value) { const data = ref({ roleId: dataScopeForm.id, - menuIds: treeRef.value!.getCheckedKeys(false) as unknown as Array + menuIds: [ + ...(treeRef.value!.getCheckedKeys(false) as unknown as Array), + ...(treeRef.value!.getHalfCheckedKeys() as unknown as Array) + ] }) await PermissionApi.assignRoleMenuApi(data.value) }