mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
allow router mode to be set in config
This commit is contained in:
parent
da0bba83c7
commit
c40259877b
@ -54,7 +54,7 @@ const scrollBehavior = (to, from, savedPosition) => {
|
|||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history',
|
mode: '<%= router.mode %>',
|
||||||
base: '<%= router.base %>',
|
base: '<%= router.base %>',
|
||||||
linkActiveClass: '<%= router.linkActiveClass %>',
|
linkActiveClass: '<%= router.linkActiveClass %>',
|
||||||
scrollBehavior,
|
scrollBehavior,
|
||||||
|
@ -36,6 +36,7 @@ class Nuxt {
|
|||||||
mode: 'out-in'
|
mode: 'out-in'
|
||||||
},
|
},
|
||||||
router: {
|
router: {
|
||||||
|
mode: 'history',
|
||||||
base: '/',
|
base: '/',
|
||||||
middleware: [],
|
middleware: [],
|
||||||
linkActiveClass: 'nuxt-link-active',
|
linkActiveClass: 'nuxt-link-active',
|
||||||
|
Loading…
Reference in New Issue
Block a user