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

uni-vue-devtools 在 cli vue3 ts 下运行微信小程序报错 "未能获取局域网地址,本地调试服务不可用",官方的文档并未解释清楚如何操作 #5027

Open
redwolf1996 opened this issue Jul 11, 2024 · 0 comments
Labels
mp mini program uni-vue-devtools uni-vue-devtools

Comments

@redwolf1996
Copy link

如题在cli项目安装uni-vue-devtools 后,运行 --devtools后,浏览器并未和项目建立链接,小程序开发者工具下报如下错误
image
官方文档的解释如下:
问:uni.addInterceptor 修改 request url 导致报错 未能获取局域网地址,本地调试服务不可用?
答:uni-vue-devtools 依赖本地服务通信,故修改 request url 应绕开相关服务,特征为 http:localhost|本机ip:端口。
本人的确使用了uni.addInterceptor,但是按照官方文档的解释还是不知道如何具体操作,请教各位大神该怎么办
image

@bfc846958672 bfc846958672 added mp mini program uni-vue-devtools uni-vue-devtools labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mp mini program uni-vue-devtools uni-vue-devtools
Projects
None yet
Development

No branches or pull requests

2 participants