This commit is contained in:
xingyu4j
2025-09-03 14:58:59 +08:00
2 changed files with 4 additions and 10 deletions

View File

@@ -59,9 +59,9 @@ function handleComplete(e: string[]) {
async function handleSend(e: Event) {
try {
e?.preventDefault();
await handleSendCode();
countdown.value = maxTime;
startCountdown();
await handleSendCode();
} catch (error) {
console.error('Failed to send code:', error);
// Consider emitting an error event or showing a notification