/默认跳转地址

This commit is contained in:
caishi 2021-07-06 14:06:42 +08:00
parent 3b31b5c47b
commit 3ac00c3f86
1 changed files with 0 additions and 3 deletions

View File

@ -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({