Commit c57592f3 by 谦元吉 Committed by GitHub

fix(@vben-core/shadcn-ui): 修复VbenPinInput组件在点击获取验证码和回车同时进行时会重复触发计时器的问题 (#6705)

1 parent b0d7b177
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!