Ver Fonte

言语康复训练 - 听 - 77%

JutarryWu há 1 semana atrás
pai
commit
ea89d00dc1

+ 4 - 1
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskAuditoryTraining/CATAuditoryTrainingWordImgMatching/index.vue

@@ -267,7 +267,10 @@ onMounted(() => {
             question: Topics.question,
             topics: TopicsVal.value
           }),
-          score: TopicsVal.value.filter((item) => item.userAnswer === item.correct).length + ''
+          score:
+            TopicsVal.value.reduce((accumulator, current) => {
+              return accumulator + Number(current.score)
+            }, 0) + ''
         })
         localStorage.removeItem('tow-win-auditory-word-img-matching-isSubmitting')
       }