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?