There is an error in the conversion of axios.post (url, querystring.stringify ())

axios.post (url, querystring.stringify (data, {arrayFormat: "brackets"})) conversion error
Code goes like this:
export function similarListDel (data) {/ / Monitor list deletion
const url = zurl +" MonitoringList/del"
return axios.post (url, querystring.stringify (data, {arrayFormat: "brackets"}))

.then((res) => {
  return Promise.resolve(res)
})
The

}
request returns something like this:
id: 95 [object Object] id=110 [object Object] token=wVoPxP8PqKDg3er;
the data I want is like this:
id [0]: 95,
id [1]: 110,
token:wVoPxP8PqKDg3er,
what should I do?

Mar.30,2021

I know the problem.
do not introduce var querystring= require ('querystring'),
but introduce var qs = require (' qs'). Although the methods of
querystring and qs are the same, they have no relationship. Qs is used in aixos and comes with axios installation.

Menu