fix(PicAuthCodeModal): Optimize the image captcha style and improve the automatic refresh of the captcha.

This commit is contained in:
haitaoo 2023-07-04 15:09:29 +08:00
parent a96f73a95e
commit c620d466f1
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const Index: React.FC<IProps> = ({
<Modal.Body>
<Form noValidate onSubmit={clickSubmit}>
<Form.Group controlId="code" className="mb-3">
<div className="mb-3">
<div className="mb-3 p-2 d-flex align-items-center justify-content-center bg-light rounded-2">
<img
src={imgCode?.captcha_img}
alt="code"

View File

@ -135,6 +135,7 @@ const Index: React.FC<Props> = ({ callback }) => {
}
setFormData({ ...data });
}
getImgCode();
});
};