1 localhost 改为本机ip地址 ipconfig
devServer: { open: true, // host: "localhost", host: "10.3.102.156",
2.地址栏复制到草料二维码
https://cli.im/
3.相关软件扫一扫即可
ip地址访问vue项目
原文:https://www.cnblogs.com/xiaoliziaaa/p/13640274.html