mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-26 13:13:03 +00:00
added comments
This commit is contained in:
parent
948a058363
commit
6a2af4f505
2 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,8 @@ export default {
|
|||
},
|
||||
|
||||
watch: {
|
||||
// Watch for any changes in the route string
|
||||
// When change is detected, scroll main div back to the top
|
||||
$route() {
|
||||
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
|
||||
}
|
||||
|
|
|
@ -171,6 +171,8 @@ export default {
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
// Watch for change in the route query string (in this case, ?v=xxxxxxxx to ?v=yyyyyyyy)
|
||||
// When change is detected, reset and run getVideo function again
|
||||
$route: {
|
||||
deep: true,
|
||||
handler(newRt, oldRt) {
|
||||
|
|
Loading…
Reference in a new issue