From 8eb519b16b85014ac2492bfc5a649f7002accda2 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Tue, 14 Nov 2017 11:06:06 +0800 Subject: [PATCH] feat: add parseQuery and stringifyQuery for router --- lib/app/router.js | 2 ++ lib/common/options.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/app/router.js b/lib/app/router.js index 8312556090..e7f997d7e3 100644 --- a/lib/app/router.js +++ b/lib/app/router.js @@ -60,6 +60,8 @@ export function createRouter () { routes: [ <%= _routes %> ], + parseQuery: <%= router.parseQuery %>, + stringifyQuery: <%= router.stringifyQuery %>, fallback: <%= router.fallback %> }) } diff --git a/lib/common/options.js b/lib/common/options.js index 672a216c85..408613ba29 100755 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -271,6 +271,8 @@ Options.defaults = { linkExactActiveClass: 'nuxt-link-exact-active', extendRoutes: null, scrollBehavior: null, + parseQuery: false, + stringifyQuery: false, fallback: false }, render: {