mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-02-03 02:54:40 +08:00
fix(components->Upload): 修复文件上传过程中删除文件终止上传时,上传状态未改变不能关闭Modal的bug (#3761)
This commit is contained in:
parent
83455a07a0
commit
04d4c5cd66
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user