//签约状态查询
export function contractStatusQYS(data) {
return request({
url: 'syb/qiyuesuo/contractStatus',
method: 'post',
data,
// 设置请求头
// 设置请求头
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
// 转换数据方法
// 转换数据方法
transformRequest: [data => {
let ret = ''
for (let it in data) {
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
}
return ret
}]
})
}
这样就可以了!
转载请注明:前端录»vue + axios 需要传送formData格式的数据