From 58e07fc5b2456aaf1e7515a58195c382c9983da4 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Fri, 6 Sep 2019 19:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/usersInfo/banks/BanksIndex.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/public/react/src/modules/user/usersInfo/banks/BanksIndex.js b/public/react/src/modules/user/usersInfo/banks/BanksIndex.js index 15331a2e7..0698048f2 100644 --- a/public/react/src/modules/user/usersInfo/banks/BanksIndex.js +++ b/public/react/src/modules/user/usersInfo/banks/BanksIndex.js @@ -78,10 +78,10 @@ class BanksIndex extends Component{ } componentDidMount = () =>{ - let pathname = this.props.location.pathname; - this.setState({ - publicly:pathname.indexOf("/publicly") > -1 - }) + // let pathname = this.props.location.pathname; + // this.setState({ + // publicly:pathname.indexOf("/publicly") > -1 + // }) } @@ -92,16 +92,16 @@ class BanksIndex extends Component{ } componentDidUpdate(prevProps) { - if(prevProps.current_user!=this.props.current_user){ - let { publicly }=this.state; - if( this.props.checkIfLogin()) { - if (this.props.current_user && this.props.current_user.professional_certification == false && publicly){ - this.props.history.push(`/topicbank/${this.props.current_user.login}/publicly`); - } - } else { - this.props.showLoginDialog() - } - } + // if(prevProps.current_user!=this.props.current_user){ + // let { publicly }=this.state; + // if( this.props.checkIfLogin()) { + // if (this.props.current_user && this.props.current_user.professional_certification == false && publicly){ + // this.props.history.push(`/topicbank/${this.props.current_user.login}/publicly`); + // } + // } else { + // this.props.showLoginDialog() + // } + // } // let { publicly }=this.state; // if(this.props.current_user && this.props.current_user.professional_certification == false && publicly){ // if( this.props.checkIfLogin()) {