Browse Source

fixed #348

ali 2 năm trước cách đây
mục cha
commit
7b2e4034ac

+ 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--