map里异步结果先后没有顺序

32 阅读1分钟

for (const item of actTypes) { try { const res: any = await actList({ type: item });

          这种方法能解决。。