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'))