Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need Help] 使用useRequest时 怎么能够和promise.all一起使用? #230

Closed
alleluya-young opened this issue Mar 16, 2024 · 2 comments
Closed
Labels
question Further information is requested

Comments

@alleluya-young
Copy link

问题描述 Problem Description

请教一下 如果有多个接口或者相同接口不同传参多次请求 需要用到promise.all处理返回结果 应该怎么写呢?

其他信息 Other information

@alleluya-young alleluya-young added the question Further information is requested label Mar 16, 2024
@John60676
Copy link
Member

这种场景下更推荐你直接用 Axios

@alleluya-young
Copy link
Author

这种场景下更推荐你直接用 Axios

嗯嗯 最后是这么写的 我开始的时候以为有类似[run1,run2,...]这样的用法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants