this.axios.post(`${API_HOST}/api/auth/login`, obj, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(response) {
const data = response.data;
}, function(response) {});
this.axios({
method: "POST",
url: `${API_HOST}/api/bind/index`,
data: obj,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(res) {
console.log(res);
});
作者:robotlee8
链接:https://www.jianshu.com/p/21875da3d74f
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。