可以用axios.all 一次性发起多个接口请求
function r1() {
return axios.get(url1)
}
function r2() {
return axios.get(url2)
}
function r3() {
return axios.get(url3)
}
await axios.all([r1(),r2(),r3()]).then(axios.spread((r1,r2,r3)=>{
article = r1.data
taglist = r2.data
hot_article = r3.data
}))