调整历史播放页面watch监测view的事件

This commit is contained in:
buvta
2020-12-13 18:21:38 +08:00
parent 19c11f2694
commit 118bc5058c
2 changed files with 6 additions and 4 deletions

View File

@@ -161,8 +161,10 @@ export default {
},
watch: {
view () {
this.getAllhistory()
this.getAllsites()
if (this.view === 'History') {
this.getAllhistory()
this.getAllsites()
}
}
},
methods: {

View File

@@ -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