Fix strange vuejs event cycle when keep-alive limit is hit.

This commit is contained in:
FireMasterK
2021-09-06 02:23:59 +05:30
parent 3dc0287dff
commit 07dfa21956
4 changed files with 32 additions and 13 deletions

View File

@@ -179,6 +179,9 @@ export default {
this.active = false;
window.removeEventListener("scroll", this.handleScroll);
},
beforeUnmount() {
window.removeEventListener("scroll", this.handleScroll);
},
methods: {
fetchVideo() {
return this.fetchJson(this.apiUrl() + "/streams/" + this.getVideoId());