diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index 458da0d98..7f8d40c65 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -211,7 +211,6 @@ class LoginRegisterComponent extends Component { login: this.state.login, password: this.state.password, }).then((response) => { - if (response === undefined) { return } @@ -219,7 +218,7 @@ class LoginRegisterComponent extends Component { this.props.history.push("/interesse"); return; } - if(response.status === -2){ + if(response.data.status === -2){ if("该手机号尚未注册" || "该邮箱尚未注册"){ this.setState({ Phonenumberisnotco:response.data.message,