axios.all

// 2.axios发送多个请求
// Promise.all
axios.all([
  axios.get("http://123.207.32.32:8000/home/multidata"),
  axios.get("http://123.207.32.32:9001/lyric?id=500665346")
]).then(res => {
  console.log("res:", res)
})

 

posted @ 2022-08-29 11:51  杨建鑫  阅读(187)  评论(0编辑  收藏  举报