弹框修改接口

This commit is contained in:
caishi 2021-03-19 11:52:04 +08:00 committed by caishi
parent 146d4c9baa
commit f14443a6e8
1 changed files with 2 additions and 2 deletions

View File

@ -227,13 +227,13 @@ export function TPMIndexHOC(WrappedComponent) {
let url = `/accounts/gitea_regsiter.json`;
const { email , current_user } = this.state;
if(email){
url = `/register.json`;
url = `/users/change_password.json`;
}
axios.post(url,{
login:current_user && current_user.login,
...values
}).then(result=>{
if(result && result.data && result.data.status === 1){
if(result && result.data && result.data.status === 0){
this.setState({
giteaVisible:false,
email:undefined