We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
有没有办法实现类似 axios 的 interceptors ? 实现统一在请求前进行参数的修改或者请求后的错误处理?
The text was updated successfully, but these errors were encountered:
useRequest在在未自定义service的情况下是直接使用Taro.request的。所以可以直接使用taro提供的拦截器。或者自定义service: 就可以完全自定义当前请求实例的行为了。
useRequest
service
Taro.request
taro
Sorry, something went wrong.
No branches or pull requests
useRequest是否没有办法做统一的请求/响应拦截?
有没有办法实现类似 axios 的 interceptors ? 实现统一在请求前进行参数的修改或者请求后的错误处理?
The text was updated successfully, but these errors were encountered: