information.map((item) => {
fetch(item, { method: 'get', mode: 'cors' })
// 第一个then 设置请求的格式
.then((e) => e.json())
// 第二个then 处理回调
.then((data) => {
console.log(data);
});
});
} else {
message.error(result.message);
}
看这个你就明白了https://blog.csdn.net/qq_42556623/article/details/120543441
双重循环
一般上不建议循环里调用接口
你把大问题和全部代码放上来看下,我不明白你问什么要这样做