now encapsulates an api called postItemData () {}; when submitting data, the api, is called multiple times in submit () {} through items in an array as follows:
postItemData(data){
axios.post(data).then()
},
submit(array){
array.forEach(item => {
this.postItemData(item)
})
}
how can I execute the callback function after all requests are returned correctly? Feel that you should use axios.all, how to write the request? Thank you