Dva: forEach(dispatch.().then()) 怎样才能让then方法执行多次

Created on 20 May 2019  ·  2Comments  ·  Source: dvajs/dva

你好
我们现在需要遍历一个数组去循环请求后端数据,现在确实是发N个请求到后台。但是then回调时却只回调最后一次请求的,请问这样怎么破?

wontfix

Most helpful comment

promise.all

All 2 comments

promise.all

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings