diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue index 4b36258..867f1b2 100644 --- a/src/project/qujing/AppLegalLearning/testForm.vue +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -123,11 +123,10 @@ export default { this.score=this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore this.rightCount ++ } - } - if(this.list[this.activeIndex].type==1) { // 多选 + } else if(this.list[this.activeIndex].type==1) { // 多选 this.rightOpt = this.list[this.activeIndex].items.filter(e=> e.checked==1).map(i=> i.sort) - console.log(this.rightOpt); - if(this.list[this.activeIndex].items.every(item=>item.checked===item.isChecked)){ + + if(this.list[this.activeIndex].items.every(item=>item.checked == item.isChecked)){ this.score = this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore this.rightCount ++ }