[Vuejs]-Refreshing a vue component from a vue-router route

0👍

If you only need an id and no other query param is needed, why don’t just use it as url param?

{ 
    path: '/mainreview/search/:id', 
    component: mainreview, 
    props: true
}

Then you can push

router.push({ path: '/mainreview/search', params: { id: this.id[0].ID } });

Leave a comment