|
@@ -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')
|
|
|
}
|