forked from Gitlink/forgeplus-react
弹框修改接口
This commit is contained in:
parent
146d4c9baa
commit
f14443a6e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue