@Vue/Cli 3 在vue.config.js里加上vue
.disableHostCheck(true)
vue-cli 在webpack.dev.conf.js里加上webpack
devServer: { disableHostCheck: true }