mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
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:
parent
7d76dea667
commit
1343d4cfac
@ -53,7 +53,7 @@ export const useHandlers = (
|
||||
|
||||
function removeFile(file: UploadFile) {
|
||||
uploadFiles.value = uploadFiles.value.filter(
|
||||
(uploadFile) => uploadFile !== file
|
||||
(uploadFile) => uploadFile.uid !== file.uid
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user