let result=await Promise.all(dataComments.map(async (ele)=>{return (async ()=>{let resData= await articleApi.getOneArticle(ele.article_id);let titleData=resData.data;ele.title=titleData.title;console.log("111")return ele;})()}))
如上所示即可实现map中异步函数的操作。
