let oReq = new XMLHttpRequest();
oReq.open("POST", baseServerUrl+"/api/services/app/Login_OAuth/GetUserInfoByToken", false); // 同步请求
oReq.setRequestHeader("Content-type", "application/json");
oReq.setRequestHeader("access_token", store.state.user.token);
oReq.send(JSON.stringify(parameter));//发送数据需要自定义,这里发送的是JSON结构
let res = oReq.responseText;//响应结果
let oReq = new XMLHttpRequest();
oReq.open(‘GET‘, this.imgUrl, false); // 同步请求
oReq.setRequestHeader(‘Content-type‘, ‘application/json‘);
oReq.setRequestHeader(‘access_token‘, this.$store.state.user.token);
oReq.send(JSON.stringify());// 发送数据需要自定义,这里发送的是JSON结构
let xml = oReq.responseText;// 响应结果