-
Notifications
You must be signed in to change notification settings - Fork 115
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 H5 模式下,网络请求调用错误 #590
Comments
SDK 是如何安装引入的呢? |
通过 npm 引入的。
在小程序下一切正常。 |
Taro 并不支持根据不同的平台加载对应的 SDK : #558 (comment) 因此如果要编译到 H5,需要 |
自 v4.5.0 起,SDK 开放了配置 Adapter 来支持不同的平台。对于 Taro,可以自行使用 taro 提供的 API(几乎与微信小程序一致)来实现 adapter 从而实现所有平台使用一套代码,无需从不同的路径引入不同平台的 SDK。 |
好的,谢谢回复。我升级一下 SDK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taro 运行在 H5 模式下:
执行
任意
网络请求,报错:应该是当前运行环境识别成了微信小程序,然后 ajax 请求调用成了 wx 相关的网络请求函数。
请求修复
The text was updated successfully, but these errors were encountered: