nuxtjs asyncData 里面实现多请求

          let [listA, listB,listC] = await Promise.all([
	          app.$axios.$post("plat/test-hall/test-hall-page"),
	          app.$axios.$post("plat/community/detail"),
	          app.$axios.$post("plat/arts-main/hot-course")
         ])
         console.log("listA",listA)
         console.log("listB",listB)
         console.log("listC",listC)
       return {
        listA:listA,
        listB:listB,
        listC:listC
       }

你可能感兴趣的:(vue)