Commit 937ab19b authored by Facius's avatar Facius

improvement: 已做题数计算修改

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