Vue.js项目在apache服务器部署后,刷新404的问题

原因是vue-router 使用了路由的 history 模式,这种模式充分利用 history.pushState API 来完成 URL 跳转而无须重新加载页面。 const router = new VueRouter({ mode: 'history', routes: [...] }) 需
posted @ 2019-07-08 18:47  前端南玖  阅读(1941)  评论(0编辑  收藏  举报