浏览代码

fixed #348

ali 2 年之前
父节点
当前提交
7b2e4034ac
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
  1. 2 1
      src/components/Widgets/Test/TestParticipation/TestParticipation.vue

+ 2 - 1
src/components/Widgets/Test/TestParticipation/TestParticipation.vue

@@ -217,12 +217,13 @@ export default {
         type: 'negative',
         message: 'زمان آزمون به اتمام رسیده است.'
       })
-      this.stopTimer()
       this.backToClassList()
     },
     startTimer () {
+      this.stopTimer()
       this.timerInterval = setInterval(() => {
         if (this.remainingTime <= 0) {
+          this.stopTimer()
           this.onTimeout()
         } else {
           this.remainingTime--