From f149f8a64b98c892c14d3fdf9dedbf81e1de2b5b Mon Sep 17 00:00:00 2001 From: CrazyLionLi <31852897+JavaLionLi@users.noreply.github.com> Date: Mon, 18 Apr 2022 20:00:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E4=B8=8E=E4=B8=8A=E4=BC=A0=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=90=8E=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=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/FileUpload/index.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 68967d7..53fc381 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -16,15 +16,14 @@ > 选取文件 - -
- 请上传 - - - 的文件 -
- + +
+ 请上传 + + + 的文件 +
  • @@ -142,7 +141,7 @@ function handleUploadError(err) { function handleUploadSuccess(res, file) { 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));