From 10dc5db970204d5624e326f104d6159a23d9a71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 5 Nov 2019 15:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/user/account/AccountBinding.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/user/account/AccountBinding.js b/public/react/src/modules/user/account/AccountBinding.js index f5bf834d3..98ebc6a66 100644 --- a/public/react/src/modules/user/account/AccountBinding.js +++ b/public/react/src/modules/user/account/AccountBinding.js @@ -12,7 +12,6 @@ class AccountSecure extends Component { super(props) this.state = { Modalstype:false, - isphone:false, list:[{ en_type: "wechat", id: null, @@ -40,14 +39,9 @@ class AccountSecure extends Component { return flag; } componentDidMount() { - let flag = this.IsPC(); //true为PC端,false为手机端 let {basicInfo}=this.props; let {list}=this.state; - this.setState({ - isphone: flag - }) let newlist=list; - if(basicInfo===undefined||JSON.stringify(basicInfo) == "{}"||basicInfo&&basicInfo.open_users.length===0){ }else{ @@ -124,7 +118,7 @@ class AccountSecure extends Component { ) } render() { - let {basicInfo}=this.props; + let flag = this.IsPC(); //true为PC端,false为手机端 let {list}=this.state; return (