试题导入报错显示

This commit is contained in:
zhangsir
2024-09-27 15:39:18 +08:00
parent 56634f8117
commit b8d84c3be6

View File

@@ -217,13 +217,16 @@ export default {
if(delIdx>-1){ if(delIdx>-1){
fileList.splice(delIdx,1); fileList.splice(delIdx,1);
} }
this.$emit("success", res);
} 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);
}, },
// 删除文件 // 删除文件
handleDelete(index) { handleDelete(index) {