fix:海报模式film页面加载图片时来回切换页面偶尔有卡片被部分遮掩,其它页面是重新加载数据故而不用

This commit is contained in:
buvta
2020-12-13 18:08:17 +08:00
parent 0a812ff6c4
commit 19c11f2694

View File

@@ -420,7 +420,11 @@ export default {
},
watch: {
view () {
this.changeView()
if (this.view === 'Film') {
this.getAllSites()
if (this.$refs.filmWaterfall) this.$refs.filmWaterfall.resize() // 瀑布插件resize和refresh功能相同只是延时不同
if (this.$refs.filmSearchWaterfall) this.$refs.filmSearchWaterfall.resize()
}
},
searchTxt () {
if (this.searchTxt === '清除历史记录...') {
@@ -746,11 +750,6 @@ export default {
}
})
},
changeView () {
if (this.view === 'Film') {
this.getAllSites()
}
},
querySearch (queryString, cb) {
var searchList = this.searchList.slice(0, -1)
var results = queryString ? searchList.filter(this.createFilter(queryString)) : this.searchList