Commit 5977b640 by zhangleyuan

feat:调整代码格式

parent 31630d4a
...@@ -43,7 +43,7 @@ class Authorize extends React.Component { ...@@ -43,7 +43,7 @@ class Authorize extends React.Component {
'&redirect_uri=' + encodeURIComponent(path) + '&redirect_uri=' + encodeURIComponent(path) +
'&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect'; '&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect';
window.location.href = htmlUrl; window.location.href = htmlUrl;
} }
getWechatUserInfo = ()=>{ getWechatUserInfo = ()=>{
let {ticket,code} = this.state; let {ticket,code} = this.state;
const params = { const params = {
...@@ -53,7 +53,7 @@ class Authorize extends React.Component { ...@@ -53,7 +53,7 @@ class Authorize extends React.Component {
ticket ticket
} }
Service.hades('/anon/hades/bindWeChat',params).then( Service.hades('/anon/hades/bindWeChat',params).then(
this.setState({ this.setState({
hasBindWechat:true hasBindWechat:true
}) })
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment