this.axios({
method: 'POST',
url: URL,
data: {
"mobile": "18658163306",
},
headers: {
'appId': 1000000,
'Content-Type' : 'application/json',
}
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
这样写报错,这样写请求头报错,请问怎么写
post方法应该是直接传对象,不是params吧,是不是这个报的错