0๐
Try using catch block..
this.$router.push(
{
name: this.$route.name,
query: JSON.parse(JSON.stringify(this.model))
}).catch(()=>{});
In this way, it allows you to only avoid the error displaying, because browser thinks the exception was handled.
- [Vuejs]-How to reset animation of dougtesting.net?
- [Vuejs]-Vue JS โ Prevent show duplicate value in v-for
0๐
I fixed it. I donโt know how but I used to sync the form to the this.$route.query
. So, when I was filling the form the query was getting updated. Obviously, when I was trying to push the query, the Vue router thought the query is redundant and raised that error.
- [Vuejs]-Emit a function to get the value of :checked
- [Vuejs]-Mock of store action of vuex does not mocked
Source:stackexchange.com