vue项目不能同时被localhost和ip地址同时访问的方法时间:2023-03-08 23:52:25 方法1.将index.js中的host的值改为‘0.0.0.0’ 方法2.修改package.json中script下dev的值,在后面加入--host 0.0.0.0 也可以解决