fix(components): [upload] unable to delete files in removeFile (#19437)

* fix(components): [upload] unable to delete files in removeFile

* fix(components): [upload] remove file when fileList does not use v-model

* Update packages/components/upload/src/use-handlers.ts

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: leiyu <leiyu@cmss.chinamobile.com>
Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
ly-yewu 2024-12-31 12:42:44 +08:00 committed by GitHub
parent 7d76dea667
commit 1343d4cfac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ export const useHandlers = (
function removeFile(file: UploadFile) {
uploadFiles.value = uploadFiles.value.filter(
(uploadFile) => uploadFile !== file
(uploadFile) => uploadFile.uid !== file.uid
)
}