修改webpack.config.js,添加host,disableHostCheck选项
devServer: { historyApiFallback: true, host: '0.0.0.0', disableHostCheck: true, noInfo: true },
修改webpack.config.js,添加host,disableHostCheck选项
devServer: { historyApiFallback: true, host: '0.0.0.0', disableHostCheck: true, noInfo: true },
转载于:https://www.cnblogs.com/fenle/p/6907303.html