locales resendAfter调整
This commit is contained in:
parent
3f6a5eb655
commit
f27a18bf3c
|
|
@ -10,5 +10,5 @@
|
|||
"Mobile": "请输入手机号",
|
||||
"Password": "请输入密码"
|
||||
},
|
||||
"resendAfter": "{{second}}秒后可重发"
|
||||
"resendAfter": "秒后可重发"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
"Mobile": "请输入手机号",
|
||||
"Password": "请输入密码"
|
||||
},
|
||||
"resendAfter": "{{second}}秒后可重发"
|
||||
"resendAfter": "秒后可重发"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,10 +170,12 @@ export default function Render(
|
|||
<Button
|
||||
size="small"
|
||||
type="link"
|
||||
disabled={!!disabled || (!validMobile || counter > 0)}
|
||||
disabled={!!disabled || !validMobile || counter > 0}
|
||||
onClick={() => sendCaptcha(mobile)}
|
||||
>
|
||||
{counter > 0 ? t('resendAfter', { second: counter }) : t('Send')}
|
||||
{counter > 0
|
||||
? counter + t('resendAfter')
|
||||
: t('Send')}
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ export default function Render(props: WebComponentProps<EntityDict, 'mobile', fa
|
|||
<Form colon labelCol={{ span: 4 }} wrapperCol={{ span: 8 }}>
|
||||
<Form.Item
|
||||
label="手机号码"
|
||||
required
|
||||
name="mobile"
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: '手机号不能为空',
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue