changePassword按钮disabled调整

This commit is contained in:
lxy 2025-10-14 14:25:57 +08:00
parent a4ad5411a2
commit 0cce61fea1
4 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,7 @@ export default function Render(props) {
<Space>
<Button type="primary" onClick={async () => {
await onConfirmByMobile(mobile, captcha, password);
}} disabled={!(password.length >= pwdMin && password.length <= pwdMax && password === password2)}>
}} disabled={!(password && validateStatus !== 'error')}>
提交
</Button>
<Button htmlType="reset" onClick={reset}>

View File

@ -140,7 +140,7 @@ export default function Render(props) {
<Button htmlType="reset" type="primary" onClick={async () => {
await onConfirm(prevPassword, password);
reset();
}} disabled={!(failTimes < 5 && prevPassword && password && password.length >= pwdMin && password.length <= pwdMax && password === password2)}>
}} disabled={!(failTimes < 5 && prevPassword && password && validateStatus !== 'error')}>
提交
</Button>
<Button htmlType="reset" onClick={reset}>

View File

@ -239,7 +239,7 @@ export default function Render(
onClick={async () => {
await onConfirmByMobile(mobile, captcha, password);
}}
disabled={!(password.length >= pwdMin && password.length <= pwdMax && password === password2)}
disabled={!(password && validateStatus !== 'error')}
>
</Button>

View File

@ -229,7 +229,7 @@ export default function Render(
await onConfirm(prevPassword, password);
reset();
}}
disabled={!(failTimes < 5 && prevPassword && password && password.length >= pwdMin && password.length <= pwdMax && password === password2)}
disabled={!(failTimes < 5 && prevPassword && password && validateStatus !== 'error')}
>
</Button>