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