feat: 更新验证码组件成功状态显示,优化用户体验

This commit is contained in:
2025-09-10 21:41:07 +08:00
parent 40cbda117d
commit 8b7b9987ed
2 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,6 @@ export function TurnstileWidget(props: CaptchaProps) {
const [status, setStatus] = useState<'loading' | 'success' | 'error'>('loading');
const [error, setError] = useState<string | null>(null);
// 只在验证通过时才显示勾
const handleSuccess = (token: string) => {
setStatus('success');
props.onSuccess(token);

View File

@ -3,9 +3,9 @@
"title": "Hello world!"
},
"Captcha": {
"doing": "正在检你是不是机器人...",
"doing": "正在检你是不是人...",
"error": "验证失败",
"success": "恭喜,你是人"
"success": "恭喜,你是人!"
},
"Comment": {
"collapse_replies": "收起",