**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** -
Activity
rookie-luochao commentedon Aug 10, 2024
我最近补充一下这个封装uniapp.request的测试用例吧,实现就是生成的client会调用request方法,request方法可以用requestLibPath去引用自定义的request函数,request接收的参数是用axios的参数形式,就是经典的request(url,{method: get,data:body},options)这种参数调用形式,对应到uniapp.request,就是需要判断method来映射到uniapp的request上面,不知道您能否听懂这个简要描述
rookie-luochao commentedon Aug 15, 2024
你只需要用 uni.app 实现一个request函数,然后配置 openapi-ts-request 配置就可以了
如果还有疑问,可以加我vx: 1055120207
rookie-luochao commentedon Aug 29, 2024
补充:记录使用
@uni-helper/axios-adapter适配uni.request请求[-]缺失对如何自定义 requestLib 的说明或介绍[/-][+]缺失对如何自定义 requestLib 的说明或介绍,以及如何适配uniapp[/+]