now there is a requirement to send API requests in batches, and the number is a bit large. When the web page opens, it will prompt an error soon, because too many requests sent at the same time will be timed out if some of the requests are not sent and executed at the same time.
The axios, used bydoes not seem to have the method requested by Synchronize. The following code, is there any way to make GetCombo () Synchronize request?
SetComboList(fromData, toData)
{
fromData.forEach(element => {
GetCombo(element.comboID).then(response => {
let result = response.data;
toData.push(result);
});
});
},