Router-view does not refresh on Router-link


When using the router-view with a router-link, the Browser URL will reload but the page will not refresh with the updated contents.

To remedy this, simply add the following in the router-view:

 <router-view :key="$route.fullPath" />

This will enable the page to reload in a Vue.js SPA.

Leave a comment