避免不必要的刷新

This commit is contained in:
haiyangcui
2020-10-30 18:27:04 +01:00
parent 0b24ded61f
commit dd108d3b09
3 changed files with 11 additions and 5 deletions

View File

@@ -132,7 +132,9 @@ export default {
},
watch: {
view () {
this.getChannels()
if (this.view === 'IPTV') {
this.getChannels()
}
},
searchTxt () {
}

View File

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

View File

@@ -172,8 +172,10 @@ export default {
},
watch: {
view () {
this.getAllsites()
this.getFavorites()
if (this.view === 'Star') {
this.getAllsites()
this.getFavorites()
}
}
},
methods: {