From c84c33844234684fb1376d6c90c4c4d88db62edb Mon Sep 17 00:00:00 2001 From: zhangsir Date: Sun, 10 Nov 2024 19:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=80=89=E6=8B=A9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index e1823b00..34530316 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -190,8 +190,6 @@ export default { if(this.loading) { this.isLoading = true; } - this.$emit('isTrue',true) - this.$emit('isFalse',true) return true; }, // 文件个数超出 @@ -224,12 +222,15 @@ export default { if(delIdx>-1){ fileList.splice(delIdx,1); } + this.$emit('isTrue',true) + this.$emit('isFalse',true) } else { this.isLoading = false; - //this.fileList = []; + if(this.limit == 1){ + this.fileList = []; + } this.$message({message:"上传失败",type:'error',offset:100}); } - this.$emit("success", res); }, // 删除文件