diff --git a/src/components/page/Dashboard.vue b/src/components/page/Dashboard.vue index 8f00d1a..4979060 100644 --- a/src/components/page/Dashboard.vue +++ b/src/components/page/Dashboard.vue @@ -306,6 +306,7 @@ export default { this.isDone = true this.$message.warning('测评时间结束'); clearInterval(this.timer) + this.prevQues() } },1000) }, @@ -361,8 +362,11 @@ export default { if(res.data){ this.question = res.data this.selected = this.history[this.question.currentQuestionSortNo-1] - this.handleQues() + this.isDone ? this.submitQues() : this.handleQues() } + }else if(this.isDone){ + if(!this.selected) this.selected = 'A' + this.submitQues() } }, async submitQues() { diff --git a/src/components/page/TeachingVideo.vue b/src/components/page/TeachingVideo.vue index ef592ac..41eea45 100644 --- a/src/components/page/TeachingVideo.vue +++ b/src/components/page/TeachingVideo.vue @@ -293,6 +293,7 @@ export default { this.isDone = true this.$message.warning('测评时间结束'); clearInterval(this.timer) + this.prevQues() } },1000) }, @@ -350,8 +351,11 @@ export default { if(res.data){ this.question = res.data this.selected = this.history[this.question.currentQuestionSortNo-1] - this.handleQues() + this.isDone ? this.submitQues() : this.handleQues() } + }else if(this.isDone){ + if(!this.selected) this.selected = 'A' + this.submitQues() } }, async submitQues() {