Having trouble restarting a route on a new editor
I have a specific route
/editor
as well as /editor?_id=dasd448846acsca
The /editor
route consists of a simple form with empty inputs, while the /editor?_id=dasd448846acsca
route has the same component but with filled inputs from the database. I want to be able to open the /editor
component (using a function or link) with empty inputs instead of filled ones from the /editor?_id=dasd448846acsca
component.
I tried using
this.$router.push('editor'); this.$forceUpdate();
in a function, and while the route changed, the data was not reset (inputs remained filled).