diff --git a/src/components/StartTask.vue b/src/components/StartTask.vue index 0738de7..8720662 100644 --- a/src/components/StartTask.vue +++ b/src/components/StartTask.vue @@ -81,8 +81,8 @@ const breakAudio = new Audio('/resource/notification.mp3'); const progress = computed(() => { const total = isBreak.value ? 5 * 60 : 25 * 60; - const current = timerMinutes.value * 60 + timerSeconds.value; - return ((total - current) / total) * 100; + const remaining = timerMinutes.value * 60 + timerSeconds.value; + return (remaining / total) * 100; }); const nowTimestamp = ref(Date.now());