How handle error in promise await and not break another promise?

前端 未结 0 1010
深忆病人
深忆病人 2021-01-29 00:33

I have async function:

 async getLayers() {
     let arr = [];
     try {
     let thematicLayers = await new ThematicLayers(this.userRoles).get();
     let custo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题