From ae600dc2c35d194e0a22bcdfaabdc328f9b05292 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 17 Feb 2023 15:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppLegalLearning/testForm.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ++ }