소스 검색

🐛: fix timer drop to negative if reset time is 0

master
Adrien 3 년 전
부모
커밋
a7f468888b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      src/components/Battleground/Timer.vue

+ 2
- 1
src/components/Battleground/Timer.vue 파일 보기

@@ -18,9 +18,10 @@
startTimer: function () {
this.stopTimer()
this.timerIntervalId = setInterval(() => {
this.currentTime--
if (this.currentTime === 0) {
this.stopTimer()
} else {
this.currentTime--
}
}, 1000)
},


불러오는 중...
취소
저장