[Vuejs]-How to set the scroll to top after navigating from one page to other in quasar

0👍

You can do this in router.

https://router.vuejs.org/guide/advanced/scroll-behavior.html

scrollBehavior() {
   document.getElementById('app').scrollIntoView({ behavior: 'smooth' });
}

or

scrollBehavior (to, from, savedPosition) {
   return { x: 0, y: 0 }
}

Leave a comment