移动getChannelList到if里,避免不必要的开销

This commit is contained in:
haiyangcui
2020-11-21 22:27:26 +01:00
parent e032f86d3d
commit 429eb4aac0

View File

@@ -400,8 +400,10 @@ export default {
this.right.show = false
this.right.type = ''
if (this.view === 'Play') {
this.getChannelList()
if (this.video.key === '' && !this.video.iptv) this.channelListShow = true
if (this.video.key === '' && !this.video.iptv) {
this.getChannelList()
this.channelListShow = true
}
}
},
video: {