感謝,順便貼一下axios封裝后的post寫法:
// * qs的 post 或者 put 用法
export function deleteUserByIds({ ids }) {
return request({
url: '/user/deleteUserByIds',
method: 'post',
data: qs.stringify({ ids }, { arrayFormat: 'repeat' }, { charset: 'utf-8' })
})
}
呆鵬斬翅 評(píng)論自axios傳遞數(shù)組參數(shù)爬坑總結(jié)