mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
feat: 更新验证码组件成功状态显示,优化用户体验
This commit is contained in:
@ -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);
|
||||
|
@ -3,9 +3,9 @@
|
||||
"title": "Hello world!"
|
||||
},
|
||||
"Captcha": {
|
||||
"doing": "正在检测你是不是机器人...",
|
||||
"doing": "正在检查你是不是个人...",
|
||||
"error": "验证失败",
|
||||
"success": "恭喜,你是人类!"
|
||||
"success": "恭喜呀,你是个人!"
|
||||
},
|
||||
"Comment": {
|
||||
"collapse_replies": "收起",
|
||||
|
Reference in New Issue
Block a user