mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
Merge branch 'master' into 0.9.10
This commit is contained in:
commit
5b22564b10
@ -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,
|
||||||
|
@ -181,6 +181,7 @@ function * generateRoutesAndFiles () {
|
|||||||
uniqBy: _.uniqBy,
|
uniqBy: _.uniqBy,
|
||||||
isDev: this.dev,
|
isDev: this.dev,
|
||||||
router: {
|
router: {
|
||||||
|
mode: this.options.router.mode,
|
||||||
base: this.options.router.base,
|
base: this.options.router.base,
|
||||||
middleware: this.options.router.middleware,
|
middleware: this.options.router.middleware,
|
||||||
linkActiveClass: this.options.router.linkActiveClass,
|
linkActiveClass: this.options.router.linkActiveClass,
|
||||||
|
@ -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