Promise.allSettled
改为 Promise.all
即可解决,参考资料 Better handling of rejections using Promise.allSettled()
- Promise.all() will technically reject as soon as one of the functions passed in the array rejects.
- Promise.allSettled() will never reject - instead it will wait for all functions passed in the array to either resolve or reject.