fix: i18n

This commit is contained in:
lxy 2025-11-20 10:39:03 +08:00
parent b839318c5c
commit 67341a64df
4 changed files with 14 additions and 2 deletions

View File

@ -35,6 +35,9 @@ export default OakComponent({
},
passport: {
systemId,
type: {
$ne: 'password'
}
},
};
}
@ -166,6 +169,9 @@ export default OakComponent({
filter: {
systemId,
enabled: true,
type: {
$ne: 'password',
}
},
sorter: [{
$attr: {

View File

@ -14,7 +14,7 @@ export default function Render(props) {
}} className={Style['loginbox-input']}/>
</Form.Item>
<Form.Item name="captcha">
<Input allowClear value={captcha} size="large" maxLength={digit} placeholder={t('placeholder.Captcha')} onChange={(e) => {
<Input allowClear value={captcha} size="large" maxLength={digit} placeholder={t('placeholder.Captcha', { digit })} onChange={(e) => {
inputChange('captcha', e.target.value);
}} className={Style['loginbox-input']} suffix={<Button size="small" type="link" disabled={!!disabled || !validEmail || counter > 0} onClick={() => sendCaptcha()}>
{counter > 0

View File

@ -74,6 +74,9 @@ export default OakComponent({
},
passport: {
systemId,
type: {
$ne: 'password'
}
},
}
}
@ -206,6 +209,9 @@ export default OakComponent({
filter: {
systemId,
enabled: true,
type: {
$ne: 'password',
}
},
sorter: [{
$attr: {

View File

@ -65,7 +65,7 @@ export default function Render(
value={captcha}
size="large"
maxLength={digit}
placeholder={t('placeholder.Captcha')}
placeholder={t('placeholder.Captcha', { digit })}
onChange={(e) => {
inputChange('captcha', e.target.value);
}}