uniapp运行到手机上,提示request:fail abort statusCode:-1 Failed to connect to localhost/127.0.0.1

作者:

不能使用类似localhost或者127.0.0.1的地址,必须使用局域网ip就可以了

https://blog.csdn.net/changyana/article/details/124093688