From b1b4e61244737c9627c0589aa41f9e1c141a3751 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:38:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=94=B9=E9=80=A0=E6=97=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4rowDrop=E8=A7=A6=E5=8F=91=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/History.vue | 2 +- src/components/Star.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/History.vue b/src/components/History.vue index 44a9898..e230c21 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -314,6 +314,7 @@ export default { }) }, updateViewMode () { + if (this.setting.historyViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100) setTimeout(() => { if (this.$refs.historyWaterfall) this.$refs.historyWaterfall.refresh() }, 1000) setting.find().then(res => { res.historyViewMode = this.setting.historyViewMode @@ -322,7 +323,6 @@ export default { } }, mounted () { - this.rowDrop() window.addEventListener('resize', () => { }, true) }, created () { diff --git a/src/components/Star.vue b/src/components/Star.vue index 8719afe..82b333d 100644 --- a/src/components/Star.vue +++ b/src/components/Star.vue @@ -463,6 +463,7 @@ export default { }) }, updateViewMode () { + if (this.setting.starViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100) setTimeout(() => { if (this.$refs.starWaterfall) this.$refs.starWaterfall.refresh() }, 1000) setting.find().then(res => { res.starViewMode = this.setting.starViewMode @@ -474,7 +475,6 @@ export default { this.getFavorites() }, mounted () { - this.rowDrop() window.addEventListener('resize', () => { }, true) } }