Vue项目通过network的ip地址访问方法 在config.js文件中的dev中修改host为0.0.0.0 devServer: { // 环境配置 host: '0.0.0.0', port: 8080, https: false, hotOnly