I have a 'x' dashboard. On click on logo in the header bar, I have called a function which have the following functionality:
if(this.isVerifier) {
this.$router.push({
name: 'sales-verifier-dashboard',
params: {
dropType: 'sales',
verifierClaimType: "All" }
}).catch(()=>{})
}
=> In the route file, I have defined the route like this :
{
path: "/verifier/:dropType/:verifierClaimType",
name: "sales-verifier-dashboard",
component: SalesVerifierDashboard,
meta: {
requireAuth: true,
showHeader: true
}
},
=> Whenever I click on my logo, the URL is getting changed as expected, but the page is not getting redirected to the Homepage of this component. Actually I have multiple dropdowns which have their own data, which is defined in the same component. I have hardcoded this params, which are basically of my required page(Home).
The URL changes but the page remains at the same state.