ソースを参照

🐛: 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)
},


読み込み中…
キャンセル
保存