From 9c936b199e7168b520e9173291413c37f0167c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=B0=B8=E8=BE=BE?= Date: Thu, 1 Jun 2023 09:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A4=B1=E8=B4=A5=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=EF=BC=8C=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E4=BD=86=E6=98=AF=E4=B8=80=E7=9B=B4=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index d7bf228..5949dc4 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -170,6 +170,7 @@ function handleExceed() { function handleUploadError(err) { proxy.$modal.msgError('上传失败') proxy.$modal.closeLoading() + number.value-- } // 上传成功回调 @@ -178,6 +179,7 @@ function handleUploadSuccess(response, uploadFile) { fileList.value = [] proxy.$modal.msgError(`上传失败,原因:${response.msg}!`) proxy.$modal.closeLoading() + number.value-- return } const { fileName, url, fileId } = response.data