feat: add parseQuery and stringifyQuery for router

This commit is contained in:
Clark Du 2017-11-14 11:06:06 +08:00
parent ff4a5bd404
commit 8eb519b16b
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,8 @@ export function createRouter () {
routes: [
<%= _routes %>
],
parseQuery: <%= router.parseQuery %>,
stringifyQuery: <%= router.stringifyQuery %>,
fallback: <%= router.fallback %>
})
}

View File

@ -271,6 +271,8 @@ Options.defaults = {
linkExactActiveClass: 'nuxt-link-exact-active',
extendRoutes: null,
scrollBehavior: null,
parseQuery: false,
stringifyQuery: false,
fallback: false
},
render: {