浏览代码

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


正在加载...
取消
保存