fix: change emial need confirm password

This commit is contained in:
shuai 2023-05-06 15:44:25 +08:00
parent dd47eeced6
commit 73598e8af6
1 changed files with 6 additions and 7 deletions

View File

@ -52,12 +52,6 @@ const Index: FC = () => {
});
};
useEffect(() => {
if (step > 1) {
getImgCode();
}
}, [step]);
const handleChange = (params: Type.FormDataType) => {
setFormData({ ...formData, ...params });
};
@ -172,7 +166,12 @@ const Index: FC = () => {
/>
</Form.Group>
<Button variant="outline-secondary" onClick={() => setStep(2)}>
<Button
variant="outline-secondary"
onClick={() => {
setStep(2);
getImgCode();
}}>
{t('change_email_btn')}
</Button>
</Form>