Skip to content

Commit

Permalink
fix: timer 结束后未清空
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaTsuk1 committed Jul 21, 2024
1 parent a30b45c commit 3b60e12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stores/useTimerStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const useTimerStore = defineStore('timer', () => {
}

function reset() {
taskTimer = null
countTimer = null
startTime = 0
spend.value = 0
}
Expand Down

0 comments on commit 3b60e12

Please sign in to comment.