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); }, // 删除文件