I am currently developing a filtering component for a grid system. This component includes various fields where user inputs are stored in a model. When the user fills out the form and submits it, I have the following code for the submission process:
methods: {
async submit() {
await this.$router.push(
{
name: this.$route.name,
query: JSON.parse(JSON.stringify(this.model))
}
)
}
}
My intention is to push the form data into the URL query, but it seems that nothing happens and an error message is generated:
Avoided redundant navigation to current location
It appears that I am unable to pass a dynamic value to the query. Interestingly, when I log the model in the console and manually input the data into the query code, it works perfectly fine. Is there a workaround to resolve this issue?