Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/smartschool-platform into dev

chenw 6 years ago
parent
commit
d01ea882c6
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暂时写死,后续需要添加选择学校的步骤
             headimgurl: decodeURIComponent(this.wxAvatar),
         }).then(response => {
+            switchUser({
+                userOpenid: this.openid
+            })()
             if (response.data) {
                 switchUser({
-                    userOpenid: this.openid,
                     token: response.data.token ? response.data.token.token : ''
                 })()