瀏覽代碼

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

chenw 6 年之前
父節點
當前提交
d01ea882c6
共有 1 個文件被更改,包括 3 次插入1 次删除
  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 : ''
                 })()
                 })()