From 3ac00c3f862a6186464d7c3733fcbb5ef52ef468 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 6 Jul 2021 14:06:42 +0800 Subject: [PATCH] =?UTF-8?q?/=E9=BB=98=E8=AE=A4=E8=B7=B3=E8=BD=AC=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/tpm/TPMIndexHOC.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 271afff9..a3d5f42f 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -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({