Houjie
23 小时以前 964faa1077a89713910063c39ebe08fac4e4c56e
store/index.js
@@ -102,12 +102,13 @@
         commit
      }, param) {
         return new Promise((resolve, reject) => {
            api.thirdLogin(param.token, param.thirdType, param.tenantId).then(response => {
            api.thirdLogin(param.token, param.thirdType).then(response => {
               if (response.data.code == '200') {
                  const result = response.data.result
                  const userInfo = result.userInfo
                  uni.setStorageSync(ACCESS_TOKEN, result.token);
                  uni.setStorageSync(USER_INFO, userInfo);
                  uni.setStorageSync("userId", userInfo.id);
                  uni.setStorageSync(X_TENANT_ID, userInfo.loginTenantId);
                  commit('SET_TOKEN', result.token)
@@ -170,4 +171,4 @@
         return state.userid
      },
   }
})
})