diff --git a/app/auth.tsx b/app/auth.tsx index 719b61e..72137ab 100644 --- a/app/auth.tsx +++ b/app/auth.tsx @@ -75,10 +75,8 @@ export default function Auth() { } return } - - Toast.show({ title: '验证码已发送,请查收短信' }) setCountdown(60) // 开始倒计时 - + Toast.show({ title: '验证码已发送,请查收短信' }) // 倒计时逻辑 if (countdownTimerRef.current) { clearInterval(countdownTimerRef.current) @@ -142,7 +140,9 @@ export default function Auth() { } await getSession() Toast.show({ title: '登录成功!' }) - router.replace('/(tabs)') + setTimeout(() => { + router.replace('/(tabs)') + }, 500) }, onError: (ctx: any) => { reject(new Error(ctx.error.message))