Commit 24bc7508 authored by Damon's avatar Damon

refactor: 答题数量统计

parent 1f839e1b
...@@ -486,7 +486,10 @@ export default { ...@@ -486,7 +486,10 @@ export default {
0 0
) )
this.$u.vuex(`answerCount.${this.questionWarehouseId}`, this.count) let count = this.answerCount[this.questionWarehouseId] || 0
count+=1
this.$u.vuex(`answerCount.${this.questionWarehouseId}`, count)
if (this.count === this.total) { if (this.count === this.total) {
this.$nextTick(() => { this.$nextTick(() => {
return this.$u.toast('您已经答完全部试题') return this.$u.toast('您已经答完全部试题')
......
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