From 1c8473a5dac1ad19fa4ddb69b6c2c1da7ba5bd18 Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: 星期四, 16 六月 2022 11:35:33 +0800
Subject: [PATCH] Merge pull request #54 from biubiaYang/patch-1
---
src/components/ImageUpload/index.vue | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 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));
--
Gitblit v1.9.3