You can’t do this through vue-router, but you can add a scroll-to-top method to every router-link.
Just create a method like this:
methods: {
scrollToTop() {
window.scrollTo(0,0);
}
}
Add it to the link:
<router-link @click.native="$scrollToTop">
If you want to use it outside of your footer too, it’s better to add it to the Vue prototype
Vue.prototype.$scrollToTop = () => window.scrollTo(0,0)
It’s not a 100% solution but it’s the simplest one