How to submit a form in Vue, redirect to a new route and pass the parameters?
问题 I am using Nuxt and Vue and I am trying to submit a form, redirect the user to a new route including the submitted params, send an API request to get some data and then render that data. I achieved this by simply setting the form action to the new path and manually adding all the URL parameters to the API request. First I create a simple form with the route /search . <form action="/search"> <input type="text" name="foobar"> <button type="submit">Submit</button> </form> When submitting the