Merge branch 'pingcode-1104' into dev0515

This commit is contained in:
zhangsir
2024-11-10 19:23:44 +08:00

View File

@@ -190,8 +190,6 @@ export default {
if(this.loading) { if(this.loading) {
this.isLoading = true; this.isLoading = true;
} }
this.$emit('isTrue',true)
this.$emit('isFalse',true)
return true; return true;
}, },
// 文件个数超出 // 文件个数超出
@@ -224,12 +222,15 @@ export default {
if(delIdx>-1){ if(delIdx>-1){
fileList.splice(delIdx,1); fileList.splice(delIdx,1);
} }
this.$emit('isTrue',true)
this.$emit('isFalse',true)
} else { } else {
this.isLoading = false; this.isLoading = false;
//this.fileList = []; if(this.limit == 1){
this.fileList = [];
}
this.$message({message:"上传失败",type:'error',offset:100}); this.$message({message:"上传失败",type:'error',offset:100});
} }
this.$emit("success", res); this.$emit("success", res);
}, },
// 删除文件 // 删除文件