在build / webpack.dev.conf.js中搜索disableHostCheck,更改为true;(如果未搜索成功,直接添加) 如图所示: 在此直接复制 disableHostCheck:true, 完美解决问题。