mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-26 21:23:02 +00:00
scroll back to top after clicking on a video
This commit is contained in:
parent
64956ea4ec
commit
6a98cf4f4a
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
// scroll back to top after clicking on the video
|
||||||
|
window.scroll(0, 0);
|
||||||
|
|
||||||
this.likes = 100;
|
this.likes = 100;
|
||||||
|
|
||||||
this.$youtube.getVid(this.$route.query.v).then((result) => {
|
this.$youtube.getVid(this.$route.query.v).then((result) => {
|
||||||
|
|
Loading…
Reference in a new issue