In almost every app / site I create, I want the vue-router to go the top of the page when navigating, handle hash / anchors in URLs and remember saved positions. I’ve created a small npm package that makes it easy to do this.
You can find it at: https://www.npmjs.com/package/vue-default-scroll
To make the vuex-router go to the top of the page when you go to a new page, just import scrollBehavior from ‘vue-default-scroll’ and add it as a property to the router.
For more info, see: https://github.com/wakecoder/vue-default-scroll