修改webpack.config.js,添加host,disableHostCheck选项
devServer: { historyApiFallback: true, host: '0.0.0.0', disableHostCheck: true, noInfo: true },