From b8d84c3be60b8c77cd96e03afc90520b9ce37664 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 27 Sep 2024 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E9=A2=98=E5=AF=BC=E5=85=A5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 90efbfd5..0391f557 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -217,13 +217,16 @@ export default { if(delIdx>-1){ fileList.splice(delIdx,1); } + this.$emit("success", res); } else { this.isLoading = false; - //this.fileList = []; + if(this.limit == 1){ + this.fileList = []; + } this.$message({message:"上传失败",type:'error',offset:100}); } - this.$emit("success", res); + // this.$emit("success", res); }, // 删除文件 handleDelete(index) {