forked from Gitlink/forgeplus-react
/默认跳转地址
This commit is contained in:
parent
3b31b5c47b
commit
3ac00c3f86
|
|
@ -154,9 +154,6 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
this.setState({
|
||||
tpmLoading: false
|
||||
})
|
||||
if (this.props.match.path === "/" && response.data.login) {
|
||||
this.props.history.push(`/users/${response.data.login}`);
|
||||
}
|
||||
if(response.data && response.data.login){
|
||||
if(!response.data.has_gitea_user || (response.data.has_gitea_user && !response.data.is_sync_pwd)){
|
||||
this.setState({
|
||||
|
|
|
|||
Loading…
Reference in New Issue