mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-27 01:54:48 +00:00
Reset scroll position across doc pages
This commit is contained in:
parent
1d2275aa72
commit
b76b20232c
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ let App = Vue.component('app', {
|
|||
|
||||
router.afterEach(function() {
|
||||
router.app.hideSidenav();
|
||||
document.querySelector('.main-content').scrollTop = 0;
|
||||
});
|
||||
|
||||
router.start(App, '#app');
|
||||
|
|
|
|||
Loading…
Reference in a new issue