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

这样封装之后,小程序下 Taro.request有问题 #5

Open
wangs1203 opened this issue Sep 3, 2019 · 5 comments
Open

这样封装之后,小程序下 Taro.request有问题 #5

wangs1203 opened this issue Sep 3, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@wangs1203
Copy link

wangs1203 commented Sep 3, 2019

image
这是不正常的
image
这是直接调用request的

@TigerHee
Copy link
Owner

TigerHee commented Sep 4, 2019

没发现有影响使用的地方呢

@wangs1203
Copy link
Author

在使用的时候,发现封装之后request返回的primise没有封装的abort方法。直接调用Taro.request是有的。

@TigerHee
Copy link
Owner

TigerHee commented Sep 4, 2019

调试了一下,只要是调用了addInterceptor就会出现这个问题即使添加的是内置的拦截器Taro.addInterceptor(Taro.interceptors.logInterceptor)之后再直接调Taro.request它的abort也会消失...交给官方吧,233333333333333

@wangs1203
Copy link
Author

看到了官方的issue

@TigerHee TigerHee added the bug Something isn't working label Sep 6, 2019
@TigerHee
Copy link
Owner

请查看官方fix记录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants