From 713fbc17598d10437daf1b2d73d31b4bf0b3fefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 26 May 2022 19:03:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 f5a7522..5bd1d7d 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -115,7 +115,7 @@ function handleUploadSuccess(res) { if (res.code != 200) { proxy.$modal.msgError(`上传失败,原因:${res.msg}!`) proxy.$modal.closeLoading() - fileList.value = [] + fileList.value = fileList.value.slice(0, fileList.value.length - 1) return } uploadList.value.push({ name: res.data.fileName, url: res.data.url })