Skip to content

Commit

Permalink
Fix parsing of nested objects in dot syntax in router.parseQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Feb 19, 2022
1 parent 13284cc commit 21e0a88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web-runtime/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function $gettext(msg) {
const router = new Router({
// mode: 'history',
parseQuery(query) {
return qs.parse(query)
return qs.parse(query, {
allowDots: true
})
},
stringifyQuery(obj) {
return qs.stringify(obj, {
Expand Down

0 comments on commit 21e0a88

Please sign in to comment.