Browse Source

修复微信 绑定

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

+ 1 - 1
store/index.js

@@ -530,7 +530,7 @@ export const actions = {
         commit('option/REQUEST_WECHATINFO_STATUS_SUCCESS', response.data)
         if (response.data.status >= 0) {
           // 有状态
-          if (id !== '' && !id) {
+          if (id !== '' && id && id !== undefined) {
             response.data.openid = id
           }
           localStorage.setItem('USOFTMALLWECHATINFO', JSON.stringify(response.data))