NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.53k stars 758 forks source link

Taro.request返回对象问题 #1698

Closed chendiedie closed 10 months ago

chendiedie commented 10 months ago

<T = any, U = any>(option: Option<T, U>) => RequestTask

以上是文档中定义的request方法,返回一个RequestTask对象,但实际返回的是一个promise,微信小程序原生wx.request方法返回的RequestTask对象不一致,因此Taro.request的返回值无法使用RequestTask的api

基础库版本:2.33.0

taro-ui-bot[bot] commented 10 months ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

robinv8 commented 10 months ago

提错位置了,去这里 https://github.com/NervJS/taro/issues

chendiedie commented 10 months ago

提错位置了,去这里 https://github.com/NervJS/taro/issues

哦,不好意思,切错浏览器标签了