Created
December 6, 2019 07:40
-
-
Save Bachana123/b45cd7eae3b39580439ede4e5d586c4b to your computer and use it in GitHub Desktop.
forcing scroll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** Forcing the scroll position to the top for every routes: | |
*/ | |
// router: { | |
// scrollBehavior: function (to, from, savedPosition) { | |
// console.log(to); | |
// return { x: 0, y: 0 } | |
// } | |
// }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment