From dd108d3b09ea5675d8d1ff13640d0172f41751aa Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Fri, 30 Oct 2020 18:27:04 +0100 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IPTV.vue | 4 +++- src/components/Recommandation.vue | 6 ++++-- src/components/Star.vue | 6 ++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 7bed9a0..09aa6e6 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -132,7 +132,9 @@ export default { }, watch: { view () { - this.getChannels() + if (this.view === 'IPTV') { + this.getChannels() + } }, searchTxt () { } diff --git a/src/components/Recommandation.vue b/src/components/Recommandation.vue index 1d2dee3..5bb8bc7 100644 --- a/src/components/Recommandation.vue +++ b/src/components/Recommandation.vue @@ -170,8 +170,10 @@ export default { }, watch: { view () { - this.getRecommandations() - this.$refs.waterfall.refresh() + if (this.view === 'Recommandation') { + this.getRecommandations() + this.$refs.waterfall.refresh() + } } }, methods: { diff --git a/src/components/Star.vue b/src/components/Star.vue index 72561f8..e8d8d88 100644 --- a/src/components/Star.vue +++ b/src/components/Star.vue @@ -172,8 +172,10 @@ export default { }, watch: { view () { - this.getAllsites() - this.getFavorites() + if (this.view === 'Star') { + this.getAllsites() + this.getFavorites() + } } }, methods: {