-
Notifications
You must be signed in to change notification settings - Fork 40
缺失对如何自定义 requestLib 的说明或介绍,以及如何适配uniapp #46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
我最近补充一下这个封装uniapp.request的测试用例吧,实现就是生成的client会调用request方法,request方法可以用requestLibPath去引用自定义的request函数,request接收的参数是用axios的参数形式,就是经典的request(url,{method: get,data:body},options)这种参数调用形式,对应到uniapp.request,就是需要判断method来映射到uniapp的request上面,不知道您能否听懂这个简要描述 |
你只需要用 uni.app 实现一个request函数,然后配置 openapi-ts-request 配置就可以了
如果还有疑问,可以加我vx: 1055120207 |
补充:记录使用
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Is your feature request related to a problem? Please describe.
想试试这个库接 uniapp,发现对 uni.request 封装的细节就提了个标题。。。
指定请求库 requestLibPath 也是,就一个参数。然后细节就不管了。。没有任何标准或输入输出,header 或回调函数的实现要求说明。
Describe the solution you'd like
希望有完整的说明文档或适当提供及程序之
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: