diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index a4e4b03..6dc2e25 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -116,7 +116,7 @@ function handleRemove(file, files) { function handleUploadSuccess(res) { uploadList.value.push({ name: res.fileName, url: res.fileName }); if (uploadList.value.length === number.value) { - fileList.value = fileList.value.concat(uploadList.value); + fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value); uploadList.value = []; number.value = 0; emit("update:modelValue", listToString(fileList.value));