微信小程序真機測試失敗問題
小程序真機調(diào)試報錯問題:VM1096: Unhandled promise rejection {errno: 600001, errMsg: "request:fail -102:net::ERR_CONNECTION_REFUSED}
一、修改localhost改為ipv4
在微信小程序requestUtil.js將接口地址中的localhost改為ipv4的地址
這里有== - Network: http://192.168.1.101:8081/可以不再改localhost
文章來源:http://www.zghlxwxcb.cn/news/detail-601156.html
二、切換真機調(diào)試為1.0
文章來源地址http://www.zghlxwxcb.cn/news/detail-601156.html
成功了!??!
到了這里,關(guān)于【微信小程序真機測試失敗】:errno: 600001, errMsg: “request:fail -102:net::ERR_CONNECTION_REFUSED的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!