ソースを参照

言语康复训练 - 听 - 77%

JutarryWu 1 週間 前
コミット
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')
       }