Axios.post 设置的请求头无效

–代码
vueobj.tmpOrder.isYwsystemProject = false;
let sendParams = JSON.stringify({
“pid”: vueobj.bizOrder.pid
});
axios({
method: ‘post’,
url: ‘http://20.26.17.186:8080/form_mgnt/intf/util/sql/SCRUM_MANAGE/queryYwsystem’,
params: {
params: sendParams
},
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’
}
})
.then(response => {
let item = response.data;
vueobj.tmpOrder.isYwsystemProject = item[0].ywsystem.indexOf(“项目”) == -1 ? false : true;
})
.catch(error => {
console.log(“error”, error);
});
-network
Accept:application/json, text/plain, /
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8,en;q=0.6
Connection:keep-alive
Content-Length:0
Cookie:JSESSIONID=DFF2C95A8C6E75A61599F4CFCE4C41F6; Hm_lvt_4e5bdf78b2b9fcb88736fc67709f2806=1593325682; Hm_lpvt_4e5bdf78b2b9fcb88736fc67709f2806=1593504989
Host:20.26.17.186:8080
Origin:http://20.26.17.186:8080

post请求需要用data{}传数据,parmas拼接的请求在get提交方式有效