Skip to content

Commit

Permalink
fix: 暂停或者取消任务时应该暂停时钟
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ committed Mar 7, 2023
1 parent 593f15e commit f14c970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/ClockView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const { currentPomodoro } = storeToRefs(usePomodoroStore());
function updateTime() {
const pomodoro = currentPomodoro.value;
if (!pomodoro) {
if (!pomodoro || pomodoro.status !== 'ing') {
return;
}
currentSpend.value = moment().valueOf() - parseInt(pomodoro.lastactive) + parseInt(pomodoro.spend);
Expand Down

0 comments on commit f14c970

Please sign in to comment.