1.首先你需要将config/index.js中的host修改为0.0.0.0 2.在build/webpack.dev.conf.js的devWebpackConfig中配置useLocalIp: true(有可能写法会不一样),这样打开页面就会是ip:port的形式,同时你也可以通过localhost:port或127.0.0.1:port打开页面。