Javascript http post请求参数包含将由axios删除的空数组值
我的axios:Javascript http post请求参数包含将由axios删除的空数组值,javascript,http,object,post,axios,Javascript,Http,Object,Post,Axios,我的axios: const axiosIns = axios.create({ timeout: 60000, responseType: 'json', transformRequest: [data => qs.stringify(data)], headers: { 'x-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/x-www-form-urlencoded;charset=UT
const axiosIns = axios.create({
timeout: 60000,
responseType: 'json',
transformRequest: [data => qs.stringify(data)],
headers: {
'x-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
},
})
和我的帖子数据:
{
list: [],
word: "t",
condition: {
items: []
},
}
但是,在chrome网络请求中,我发现post数据空值和键被删除:
故障原因和位置?和是一个类似的问题。@fragmentedreality-这两篇文章都与本海报的问题无关。
Form Data:
word: t