bug修复

This commit is contained in:
kron
2026-02-07 11:59:21 +08:00
parent 6101cd80ce
commit 715e614f9d
8 changed files with 22 additions and 22 deletions

View File

@@ -96,8 +96,12 @@ const resetTimer = (count) => {
watch(
() => props.start,
(newVal) => {
if (newVal) resetTimer(props.total);
else if (timer.value) clearInterval(timer.value);
if (newVal) {
resetTimer(props.total);
} else {
remain.value = 0;
clearInterval(timer.value);
}
},
{
immediate: true,