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