bug解决——携带出现:
Waiting to navigate to: /pages/……, do not operate continuously: /pages/……
failed to connect to localhost/127.0.0.1
解决方法:
- 我的报错:主要是failed to connect to localhost/127.0.0.1引发的Waiting to navigate to: /pages/……, do not operate continuously: /pages/……
- failed to connect to localhost/127.0.0.1问题在于请求的配置出现了错误
- 当我们将uniapp项目运行到手机自定义基座像后端请求数据时不需要配置成local host形式(http://localhost:……)
- 直接用后端服务器请求的本地ip地址就好了
- 我这里将http://localhost:…改成了http://192.168.1.8:…(本地ip地址的路径)