发表于: 2020-02-19 22:56:16
1 1400
今天完成的事情:
1.推进任务
明天计划的事情:
1.推进任务
遇到的问题和收获:
1.
axios({
method: 'post',
url: '/my/api',
headers: {
'Content-type': 'application/x-www-form-urlencoded'
},
params: {
'grant_type': 'code',
'client_id': '1231453',
'client_secret': 'THIS_IS_THE_SECRET'
}
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
}
);
this.axios.defaults.headers.post['Content-Type']='application/json;charse=UTF-8'
this.axios({
method: 'post',
params: param,
transformRequest:[function () {
return JSON.stringify(param)
}],
url: '/api/c..............h'
}).then((res) => {
if (res.data.status == 200) {
// TODO:
} else {
console.log(res);
}
}).catch((res) => {
console.log(res);
})
看能不能尽快把任务做完。
评论