From 118bc5058ce1c90e2b2364d34cfe2d2df3136c85 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sun, 13 Dec 2020 18:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8E=86=E5=8F=B2=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E9=A1=B5=E9=9D=A2watch=E7=9B=91=E6=B5=8Bview=E7=9A=84?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/History.vue | 6 ++++-- src/components/Play.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/History.vue b/src/components/History.vue index 9cc75ef..5268f54 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -161,8 +161,10 @@ export default { }, watch: { view () { - this.getAllhistory() - this.getAllsites() + if (this.view === 'History') { + this.getAllhistory() + this.getAllsites() + } } }, methods: { diff --git a/src/components/Play.vue b/src/components/Play.vue index 08fc9c8..2ac80eb 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -416,9 +416,9 @@ export default { }, watch: { view () { - this.right.show = false - this.right.type = '' if (this.view === 'Play') { + this.right.show = false + this.right.type = '' this.getChannelList() if (this.video.key === '' && !this.video.iptv) { this.channelListShow = true