Commit 937ab19b authored by Facius's avatar Facius

improvement: 已做题数计算修改

parent 574520f9
...@@ -147,13 +147,15 @@ export default { ...@@ -147,13 +147,15 @@ export default {
] ]
}, },
finishCount() { finishCount() {
this.questionList[this.questionWarehouseId].reduce( return this.questionList[this.questionWarehouseId]
(accumulator, currentValue) => { ? this.questionList[this.questionWarehouseId].reduce(
if (currentValue.submitStatus) accumulator++ (accumulator, currentValue) => {
return accumulator if (currentValue.submitStatus) accumulator++
}, return accumulator
0 },
) 0
)
: 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