fix: #I67WXP bug

This commit is contained in:
xingyu 2023-01-04 22:07:23 +08:00
parent 5b64fc3d5d
commit a0f2e0e138

View File

@ -142,7 +142,11 @@ const submitForm = async () => {
// //
try { try {
const data = unref(formRef)?.formModel as TenantPackageApi.TenantPackageVO 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<number>),
...(treeRef.value!.getHalfCheckedKeys() as unknown as Array<number>)
]
console.info(data.menuIds)
if (actionType.value === 'create') { if (actionType.value === 'create') {
await TenantPackageApi.createTenantPackageTypeApi(data) await TenantPackageApi.createTenantPackageTypeApi(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))