forked from Gitlink/forgeplus-react
bug
This commit is contained in:
parent
ba2044b459
commit
efe3410c6e
|
|
@ -165,10 +165,12 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
this.setState({
|
||||
tpmLoading: false
|
||||
})
|
||||
const { pathname } = this.props.history.location;
|
||||
console.log("pathname ",pathname);
|
||||
if(pathname ==="/"){
|
||||
this.props.history.push(`/users/${response.data.login}`);
|
||||
if(response.data.login){
|
||||
const { pathname } = this.props.history.location;
|
||||
console.log("pathname ",pathname);
|
||||
if(pathname ==="/"){
|
||||
this.props.history.push(`/users/${response.data.login}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}).catch((error) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue