考试自由切换

This commit is contained in:
zhangsir
2024-09-12 15:58:10 +08:00
parent d0e49b17b6
commit e1b6eca230

View File

@@ -668,26 +668,26 @@
return;
}
if(this.curItem.userAnswer=='undefined' || this.curItem.userAnswer==''){
return;
}
// if(this.curItem.userAnswer=='undefined' || this.curItem.userAnswer==''){
// return;
// }
if(this.curItem.type==3){
//console.log(this.curItem.userAnswer,'判断题的值');
if(this.curItem.userAnswer=='true' || this.curItem.userAnswer=='false'){
// if(this.curItem.userAnswer=='true' || this.curItem.userAnswer=='false'){
this.curIndex++;
this.curItem = this.paper[this.curIndex];
//console.log(this.curItem,'切换后2');
this.updateAnswer();
}
// }
}else{
//检查当前的是否已选答案
if(this.curItem.userAnswer){
// if(this.curItem.userAnswer){
this.curIndex++;
this.curItem = this.paper[this.curIndex];
//console.log(this.curItem,'切换后2');
this.updateAnswer();
}
// }
}
//console.log(this.curItem,'this.curItem');