- 博客(3)
- 收藏
- 关注
原创 vue部署到nginx--history路由方式
1. 修改router.js设置mode 为 history需要配置当未匹配到路由时,跳转到的404页面const router = new VueRouter({ mode: 'history', routes: [ { path: '*', redirect: '/404' } ]})2. 在项目根目录添加vue.config.js...
2020-03-10 16:21:50
895
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅