数据导致的报错

This commit is contained in:
zhangsir
2025-01-10 14:29:54 +08:00
parent 398bbc675b
commit 00d272c3d0

View File

@@ -327,7 +327,7 @@ export default {
}, },
startTest(){ startTest(){
apiExamPaper.newPaperContent(this.info.id).then(res=>{ apiExamPaper.newPaperContent(this.info.id).then(res=>{
if(res.error == ''&&res.result != ''){ if(!res.error&&res.result != ''){
if(this.info.paperType==2){ if(this.info.paperType==2){
this.examPaper.json=res.result; this.examPaper.json=res.result;
let qitems=this.convertToItems(this.examPaper.json); let qitems=this.convertToItems(this.examPaper.json);