axios 处理并发请求

//同时发起多个请求时的处理
axios.all([get1(), get2()])
  .then(axios.spread(function (res1, res2) {
    // 只有两个请求都完成才会成功,否则会被catch捕获
  }));
原文地址:https://www.cnblogs.com/mengfangui/p/9195184.html