我希望在刷新页面时得到一些错误帮助。当我使用链接组件前往/store/:store_id
时,我没有任何问题。存储组件加载没有问题。但是,当我刷新页面时,它消失了,并且在控制台中我看到了这个错误
GET http://localhost:3000/store/bundle.js net::ERR_ABORTED 404 (Not Found)
感谢所有帮助和明确说明,因为我不确定为什么会这样。
更新
devserver: {
contentBase: path.join(__dirname,'./dist'),compress: true,port: 3000,historyApiFallback: true,hot: true
},