Browse Source
fix(components->Upload): 修复文件上传过程中删除文件终止上传时,上传状态未改变不能关闭Modal的bug (#3761)
pull/3764/head
Henry Rao
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
src/components/Upload/src/components/UploadModal.vue
|
|
|
@ -164,6 +164,9 @@ |
|
|
|
function handleRemove(record: FileItem) { |
|
|
|
const index = fileListRef.value.findIndex((item) => item.uuid === record.uuid); |
|
|
|
index !== -1 && fileListRef.value.splice(index, 1); |
|
|
|
isUploadingRef.value = fileListRef.value.some( |
|
|
|
(item) => item.status === UploadResultStatus.UPLOADING, |
|
|
|
); |
|
|
|
emit('delete', record); |
|
|
|
} |
|
|
|
|
|
|
|
|