| | |
| | | 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) |
| | |
| | | return state.userid |
| | | }, |
| | | } |
| | | }) |
| | | }) |