手机访问VUE项目

1.修改config 修改config文件夹下的index.js文件: module.exports = {dev: {hotst: 'localhost'

1.修改config

修改config文件夹下的index.js文件:

module.exports = {dev: {hotst: 'localhost'//改为你当前config中的ipv4的地址}
}
  • 1
  • 2
  • 3
  • 4
  • 5

2.查询本地ip

ctrl+r输入cmd回车,打开命令提示符,输入ipconfig,查看本地ip,将项目url中的localhost改为本地ip 

进入谷歌