vue-cli 本地运行http://localhost:8080报404错误

查看config/index.js里面的文件,

  dev: {
		assetsPublicPath: '/',
  		host: 'localhost',
  		port: 8080,
  }

确保dev下面这三项正确,就可以正确运行http://localhost:8080

猜你喜欢

转载自blog.csdn.net/xiaoxia188/article/details/83746465