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); });
时间: 2024-12-23 22:05:53