Promise.all

Promise.all([


    this.getData()


    ]).finally(()=>{


})


//调用接口


this.getData(){


  return new Promise(resolve=>{


  //请求接口


    getMyData({}).then(response=>{


    },err=>{


    }).finally(resolve)


  })


}


猜你喜欢

转载自blog.csdn.net/liikobe/article/details/80680902