auto scroll to top on page change
This commit is contained in:
parent
0ec69875d5
commit
485d9fae5d
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ const app = new Vue({
|
|||
pageHistory: [],
|
||||
songstest: false
|
||||
},
|
||||
watch: {
|
||||
page: () => {document.getElementById("app-content").scrollTo(0,0);},
|
||||
},
|
||||
methods: {
|
||||
async init() {
|
||||
let self = this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue