fix(components): [upload] one-way cannot add attachments (#8877)

This commit is contained in:
Xc 2022-07-19 07:32:48 +08:00 committed by GitHub
parent 379d373497
commit 3d311c003c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ export const useHandlers = (
props.onError(err as Error, uploadFile, uploadFiles.value)
}
}
uploadFiles.value.push(uploadFile)
uploadFiles.value = [...uploadFiles.value, uploadFile]
props.onChange(uploadFile, uploadFiles.value)
}