From 35c205fd86084caae3265cc64db1537054d41943 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 7 Nov 2020 19:29:40 +0100 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8E=86=E5=8F=B2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=80=91=E5=B8=83=E6=B5=81,=E6=94=B9=E8=BF=9B?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/History.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/History.vue b/src/components/History.vue index db99398..837bb5b 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -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()