05-配置好history模式的路由以后,刷新浏览器出现404
时间:2019-06-16 01:07:02
收藏:0
阅读:172
原因:
devServer里面没有配置historyApiFallback

解决方法:
const devServer = {
port: 8000,
host: ‘0.0.0.0‘,
historyApiFallback:{
index:‘/index.html‘
},
overlay: {
errors: true,
},
hot: true
}
原文:https://www.cnblogs.com/ipoodle/p/11029302.html
评论(0)