getAllRead().then((res) => { res.obj.forEach(e => { setTimeout(() => { getUserInfo(e.userId).then((res) => { console.log(res) }) }, 1000) }) })
收起
调用函数的前面加一个await关键字。
报告相同问题?