mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-29 22:53:05 +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: {
|
||||||
|
// Watch for any changes in the route string
|
||||||
|
// When change is detected, scroll main div back to the top
|
||||||
$route() {
|
$route() {
|
||||||
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
|
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,6 +171,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
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: {
|
$route: {
|
||||||
deep: true,
|
deep: true,
|
||||||
handler(newRt, oldRt) {
|
handler(newRt, oldRt) {
|
||||||
|
|
Loading…
Reference in a new issue