Update router.js

This commit is contained in:
Sébastien Chopin 2017-11-14 10:28:18 +01:00 committed by GitHub
parent 8eb519b16b
commit 679d48c8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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