Hello, everyone. I would like to ask you a question about routing parameters:
scenario: component A has a form form with many fields. I click search to jump to component B and request data based on the data.
what I do: in the past, when there were few fields, I would set them one by one with something like path:/search/:id/:keywords
, or if there were multiple fields, I would store the data in sessionStorage, and then go to component B to get the sessionStorage. Vuex is not used because refresh page data will be lost.
is there a better way to do this when there are many fields?
do you use router.push ({path: "search", query: {form: form data}})