can i use query parameter be directly concatenated onto the path when using the router. push() method? #1808
-
For example : router. push ({path: "/abc", query: {flag: 1}) Route successfully redirected, but no "? flag=1" after "/abc", just "/abc" in the browser address bar |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Apr 21, 2023
Replies: 1 comment
-
Pass a string as the argument: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pass a string as the argument:
router.push('/abc?flag=1')