Browse Source

修复微信用户绑定过后信息

shenjj 7 years ago
parent
commit
b9549b7eef
1 changed files with 3 additions and 0 deletions
  1. 3 0
      store/index.js

+ 3 - 0
store/index.js

@@ -538,6 +538,9 @@ export const actions = {
             Userinfo.nickname = response.data.nickname
             Userinfo.openid = response.data.openid
           }
+          if (response.data.status === 1) { // 已绑定
+            Userinfo.userAccount = response.data.userAccount
+          }
           Userinfo.status = response.data.status
           Userinfo.enterprises = response.data.enterprises
           localStorage.setItem('USOFTMALLWECHATINFO', JSON.stringify(Userinfo))