From 814e6e9e84a1f8fca06630ecdb92ba1e839d5b66 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 15 Jun 2021 16:42:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Dashboard.vue | 6 +++++- src/components/page/TeachingVideo.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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() {