First, if you want to pass an array, you can follow the splicing form as follows:
&materialsTypeId=11&materialsTypeId=12&materialsTypeId=&materialsTypeId=
Features: the
same key value can appear multiple times, the
value value can be empty
Second, my case
Three, my approach
The main thing is the conversion array of this qs function.
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
transformRequest: [data => Qs.stringify(data, {
indices: false })],
The corresponding qs usage: https://suwu150.blog.csdn.net/article/details/78333452