소스 검색

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