-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] router.go support object-style query string #365
Comments
@yyx990803 is there someone implementing this? How can I help? |
I'm working on advanced data-table component and this functionality is "must have", cause I want to implement saving state of filters and pagination in query strings |
vue-resource does this. Perhaps vue-resource and vue-router should shared a common vue-url module or similar? |
@seaneagan this issue is for 0.7 and is outdated. 2.x already supports this. |
It looks like the latest code does support Arrays, but with |
Why is this closed? Is this a "wontfix"? As of vue-router@3.0.1 is still unsolved:
returns
Are there any official workarounds? |
in vue-router 3 you have to provide a custom and more powerful query parser (like https://github.com/ljharb/qs) to vue-router: https://router.vuejs.org/api/#parsequery-stringifyquery |
Thanks, I just found #1259 with the explanation :) |
object-style query string maybe a good idea on store some object to query without merge then,
just like jquery.param() do:
obj = { a: { one: 1, two: 2, three: 3 } }
==>a[one]=1&a[two]=2&a[three]=3
The text was updated successfully, but these errors were encountered: