From 29fca686b618d6a722f9c5067ecaa7b2fc35c510 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 11 Jun 2020 18:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/tpm/TPMIndexHOC.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index bff0ded4..e9e23d04 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -163,10 +163,10 @@ export function TPMIndexHOC(WrappedComponent) { this.setState({ tpmLoading: false }) - const { pathname } = this.props.history.location; - if(pathname && pathname === "/"){ - this.props.history.push(`/users/${response.data.login}`); - } + // const { pathname } = this.props.history.location; + // if(pathname && pathname === "/"){ + // this.props.history.push(`/users/${response.data.login}`); + // } } }).catch((error) => { console.log(error)