1.node启动vue项目时地址一般都是http://localhost:8080

2.config->index.js 中的host:‘localhost’换成host:‘你的本机ip’就可以了

module.exports = {
  dev: {
    host: '192.168.1.100'
  }
}

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-01-19
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2021-06-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-09-20
  • 2022-12-23
  • 2021-06-02
相关资源
相似解决方案