watch round timer immediately

This commit is contained in:
Branden J Brown 2024-02-03 23:03:54 -06:00
parent 1d4bad751c
commit b1bba55a7b
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ const timestamp = useTimestamp({
});
watch(() => props.game.deadline, (now) => {
initTimeLeft.value = now - timestamp.value;
console.log(initTimeLeft, now, timestamp.value);
});
}, {immediate: true});
const moveColor = computed(() => timeLeft.value > 3000 ? 'primary' : 'red');
function attack(left: boolean) {