1.加
headers: {
‘Content-Type‘: ‘application/x-www-form-urlencoded‘,
},
self.axios.post(url, {a: 1, b:2}, {
headers: {
‘Content-Type‘: ‘application/x-www-form-urlencoded‘,
},
}).then(response => response.data)
.then(data => {
console.log(data);
});
原文:http://www.cnblogs.com/bldf/p/6366118.html