刷新历史页面瀑布流,改进自适应

This commit is contained in:
haiyangcui
2020-11-07 19:29:40 +01:00
parent 30796af5f8
commit 35c205fd86

View File

@@ -156,6 +156,7 @@ export default {
view () {
this.getAllhistory()
this.getAllsites()
this.$refs.historyWaterfall.refresh()
}
},
methods: {
@@ -335,6 +336,15 @@ export default {
},
mounted () {
this.rowDrop()
window.addEventListener('resize', () => {
if (this.$refs.historyWaterfall && this.view === 'History') {
this.$refs.historyWaterfall.resize()
this.$refs.historyWaterfall.refresh()
setTimeout(() => {
this.$refs.historyWaterfall.refresh()
}, 500)
}
}, false)
},
created () {
this.getAllhistory()