Browse Source

bug修复

FANGLH 7 years ago
parent
commit
8ac1bb2daa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

+ 3 - 1
frontend/wechat-web/src/modules/accountBind/BindMenu.jsx

@@ -88,9 +88,11 @@ class BindMenu extends Component {
             schoolId: 1,//学校id暂时写死,后续需要添加选择学校的步骤
             schoolId: 1,//学校id暂时写死,后续需要添加选择学校的步骤
             headimgurl: decodeURIComponent(this.wxAvatar),
             headimgurl: decodeURIComponent(this.wxAvatar),
         }).then(response => {
         }).then(response => {
+            switchUser({
+                userOpenid: this.openid
+            })()
             if (response.data) {
             if (response.data) {
                 switchUser({
                 switchUser({
-                    userOpenid: this.openid,
                     token: response.data.token ? response.data.token.token : ''
                     token: response.data.token ? response.data.token.token : ''
                 })()
                 })()