VUE 解决mode为history页面为空白的问题

上传:ytaook 浏览: 15 推荐: 0 文件:PDF 大小:28KB 上传时间:2020-12-17 10:33:35 版权申诉
当router.js 中mode:history 发现刷新页面 不显示了,原因出来history的请求路径资源不存在了,这个需要后端配置的, 前端 需要修改一个地方即可, devServer: { port: 8000, host: '0.0.0.0', overlay: { errors: true }, hot: true, historyApiFallback: { index: '/index.html' } }, 新增historyApiFallback
上传资源
用户评论