修复:批量开课上传数据错误一直loading

This commit is contained in:
2025-12-16 10:01:02 +08:00
parent c4102e572b
commit 86dc894f2f

View File

@@ -267,15 +267,16 @@
file: this.dataForm.file file: this.dataForm.file
}) })
}).then(({ data }) => { }).then(({ data }) => {
this.dataListLoading = false;
if (data && data.code === 0) { if (data && data.code === 0) {
if(data.result&&data.result.has.length>0){ if(data.result&&data.result.has.length>0){
this.resultStatus = true; this.resultStatus = true;
this.resultData = data.result; this.resultData = data.result;
this.dataListLoading = false; } else {
this.$message.warning(`没有有效的数据,请检查核对文件模板和数据后重新上传`);
} }
}else{ }else{
this.$message.error('文件解析有误'); this.$message.error('文件解析有误');
this.dataListLoading = false;
} }
}); });
}, },