From a0f2e0e138bf2e1a41dac2d1793154c2a75bbe43 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 4 Jan 2023 22:07:23 +0800 Subject: [PATCH] fix: #I67WXP bug --- .../src/views/system/tenantPackage/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue index 77d3aaa59..5661b7686 100644 --- a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue @@ -142,7 +142,11 @@ const submitForm = async () => { // 提交请求 try { const data = unref(formRef)?.formModel as TenantPackageApi.TenantPackageVO - data.menuIds = treeRef.value!.getCheckedKeys(false) as number[] + data.menuIds = [ + ...(treeRef.value!.getCheckedKeys(false) as unknown as Array), + ...(treeRef.value!.getHalfCheckedKeys() as unknown as Array) + ] + console.info(data.menuIds) if (actionType.value === 'create') { await TenantPackageApi.createTenantPackageTypeApi(data) message.success(t('common.createSuccess'))