A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(PicAuthCodeModal): Optimize the image captcha style and improve the automatic refresh of the captcha.
haitaooc620d466f1a1
diff --git a/ui/src/components/Modal/PicAuthCodeModal.tsx b/ui/src/components/Modal/PicAuthCodeModal.tsxindex 5b40423d..a3f0c3f4 100644--- a/ui/src/components/Modal/PicAuthCodeModal.tsx+++ b/ui/src/components/Modal/PicAuthCodeModal.tsx@@ -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"><imgsrc={imgCode?.captcha_img}alt="code"diff --git a/ui/src/pages/Users/Register/components/SignUpForm/index.tsx b/ui/src/pages/Users/Register/components/SignUpForm/index.tsxindex 022edf5b..59474088 100644--- a/ui/src/pages/Users/Register/components/SignUpForm/index.tsx+++ b/ui/src/pages/Users/Register/components/SignUpForm/index.tsx@@ -135,6 +135,7 @@ const Index: React.FC<Props> = ({ callback }) => {}setFormData({ ...data });}+ getImgCode();});};