axios({
url: ‘/api/index/getIndexlbt’,
method: ‘post’,
data: {
relevanceId:this.$route.params.id,
pictureType:4
},
transformRequest: [function (data) {
let ret = ”
for (let it in data) {
ret += encodeURIComponent(it) + ‘=’ + encodeURIComponent(data[it]) + ‘&’
}
return ret
}],
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’
}
})
感谢分享https://blog.csdn.net/m0_38069630/article/details/79105709
<https://blog.csdn.net/m0_38069630/article/details/79105709>
热门工具 换一换