Commit 574520f9 authored by Facius's avatar Facius

improvement: 已做题数计算修改

parent a37cb701
...@@ -147,10 +147,13 @@ export default { ...@@ -147,10 +147,13 @@ export default {
] ]
}, },
finishCount() { finishCount() {
return this.questionList.reduce((accumulator, currentValue) => { this.questionList[this.questionWarehouseId].reduce(
if (currentValue.submitStatus) accumulator++ (accumulator, currentValue) => {
return accumulator if (currentValue.submitStatus) accumulator++
}, 0) return accumulator
},
0
)
}, },
examText() { examText() {
return this.info.cardId ? '/' + this.info.totalExam : '题库进阶练习' return this.info.cardId ? '/' + this.info.totalExam : '题库进阶练习'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment