forked from Gitlink/forgeplus-react
Merge branch 'gitlink_server' of https://git.trustie.net/Gitlink/forgeplus-react into gitlink_server
This commit is contained in:
commit
d4a59e9a94
|
@ -176,13 +176,10 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
email:response.data.email
|
||||
})
|
||||
}
|
||||
}
|
||||
if(response.data && response.data.login){
|
||||
if(response.data.need_edit_info){
|
||||
this.setState({
|
||||
giteaVisible:true,
|
||||
email:response.data.email
|
||||
})
|
||||
// 如果处于登录状态,且刚刚打开,那么跳到个人主页
|
||||
if(this.props.match.path === "/" && this.props.history.length===2){
|
||||
debugger
|
||||
this.props.history.push(`/${response.data.login}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue