You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2022/10/05 05:16:53 UTC

[shenyu-dashboard] branch master updated: Fix verification code bug (#245)

This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new a03ac3b3 Fix verification code bug (#245)
a03ac3b3 is described below

commit a03ac3b3bac5bbe0ae7484b84559b9d1d272618d
Author: WeiS <78...@users.noreply.github.com>
AuthorDate: Wed Oct 5 13:16:47 2022 +0800

    Fix verification code bug (#245)
    
    * fix Verfication code bug
---
 src/routes/User/Login.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js
index 4ee349e6..e1f295aa 100644
--- a/src/routes/User/Login.js
+++ b/src/routes/User/Login.js
@@ -36,6 +36,10 @@ export default class LoginPage extends Component {
     this.ChildRef = React.createRef();
   }
 
+  componentDidMount() {
+    this.ChildRef.current.handleChange();
+  }
+
   handleSubmit = (err, values) => {
 
     const { dispatch } = this.props;
@@ -68,6 +72,8 @@ export default class LoginPage extends Component {
     return this.state.codeError ? <span /> : <span className={styles.codeError} id='codeError'>Please enter correct verify code!</span>
   }
 
+
+
   render() {
     const { submitting } = this.props;
     return (