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