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有类似vConsole查看网络请求的库吗? #17280

Closed
CristalFJJ opened this issue Feb 7, 2025 · 4 comments
Closed

Taro有类似vConsole查看网络请求的库吗? #17280

CristalFJJ opened this issue Feb 7, 2025 · 4 comments

Comments

@CristalFJJ
Copy link

这个特性解决了什么问题?

手机使用小程序开发/测试环境时,期望有类似H5的vConsole的浮窗,点击可查看网络请求信息,目前小程序原生的调试工具是没有网络请求信息的

这个 API 长什么样?

是否有相关的库可以推荐

@TheKonka
Copy link
Member

TheKonka commented Feb 7, 2025

Taro.addInterceptor(Taro.interceptors.logInterceptor)

好像加上这个就可以打印了

@CristalFJJ
Copy link
Author

CristalFJJ commented Feb 8, 2025

Taro.addInterceptor(Taro.interceptors.logInterceptor)

好像加上这个就可以打印了

多谢回复,有类似vconsole这种可视化的嘛
Image

@erweixin
Copy link

erweixin commented Feb 8, 2025

可以封装下这个:https://github.com/weimob-tech/WeConsole

@CristalFJJ
Copy link
Author

可以封装下这个:https://github.com/weimob-tech/WeConsole

嗯,这个taro直接引入不了,打包编译后引入运行异常,好像也确实没有找到taro直接相关的库,多谢回复哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants