Browse Source

返回404

RaoMeng 6 years ago
parent
commit
529ce6e776
1 changed files with 6 additions and 4 deletions
  1. 6 4
      frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

+ 6 - 4
frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

@@ -47,10 +47,12 @@ class BindMenu extends Component {
                 this.setState({
                     errorMsg: ''
                 })
-                window.location.href =
-                    'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
-                    this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fapi%2fschool%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
-                    this.paramId + '&connect_redirect=1#wechat_redirect'
+                setTimeout(() => {
+                    window.location.href =
+                        'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
+                        this.paramId + '&redirect_uri=https%3a%2f%2fschool-api.ubtob.com%2fapi%2fschool%2fwxSchool%2fuser%2fuserLogin&response_type=code&scope=snsapi_userinfo&state=' +
+                        this.paramId + '&connect_redirect=1#wechat_redirect'
+                }, 200)
             }
 
         } else if (this.paramType === 'open') {