From 6b36385fa55a97144819e9cd6afc62f9314db438 Mon Sep 17 00:00:00 2001 From: CrazyLionLi <31852897+JavaLionLi@users.noreply.github.com> Date: Mon, 18 Apr 2022 20:01:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对应gitee issue https://gitee.com/y_project/RuoYi-Vue/issues/I53CS3 --- src/components/ImageUpload/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));