Fix search result caching.

This commit is contained in:
FireMasterK 2021-07-07 19:26:26 +05:30
parent da8743b9cb
commit ebc767cf09
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
2 changed files with 0 additions and 6 deletions

View file

@ -93,11 +93,6 @@ export default {
deactivated() { deactivated() {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
watch: {
"$route.query.search_query": function(q) {
if (q) this.updateResults();
},
},
methods: { methods: {
async fetchResults() { async fetchResults() {
return await await this.fetchJson(this.apiUrl() + "/search", { return await await this.fetchJson(this.apiUrl() + "/search", {

View file

@ -135,7 +135,6 @@ export default {
}, },
mounted() { mounted() {
this.getVideoData().then(() => { this.getVideoData().then(() => {
console.log(this.video.title);
this.$refs.videoPlayer.loadVideo(); this.$refs.videoPlayer.loadVideo();
}); });
this.getSponsors(); this.getSponsors();