Reload Component based on Routes in Vue
If two links in your Vue application point to the same view, clicking those links one after the other may not result in data being refreshed from server. Imagine you have the same view for two different links - My account All account Both links will point to Account.vue. You will have a router file like so.. // ./router.js import Vue from "vue"; import Router from "vue-router"; Vue.use(Router); export default new Router({ routes: [ { path: "/my-account", name: "my-account", component: () => import("./views/Account.vue"), props: { authMode: "my" } }, { path: "/all-account", name: "all-account", component: () => import("./views/Account.vue"), props: { authMode: "all" } }, }); Example code for router is picked from the demonstration of how to implement role-based data filters in Vue. ...