From c029eccdd311dbbc73a98842afbb2fdcbf7de0d1 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 29 Sep 2019 15:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E8=AF=95=E5=90=AC?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=87=E5=88=B0=E5=85=B6=E4=BB=96=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/views/List.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index b5f08446..ffd26909 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,4 @@ #### 修复 - 修正火影皮肤名字 +- 修复当试听列表为空时,无法切到其他界面的Bug diff --git a/src/renderer/views/List.vue b/src/renderer/views/List.vue index 2578fc5f..2fa1a398 100644 --- a/src/renderer/views/List.vue +++ b/src/renderer/views/List.vue @@ -124,7 +124,7 @@ export default { // } // }, beforeRouteLeave(to, from, next) { - this.routeLeaveLocation = this.$refs.dom_scrollContent.scrollTop + this.routeLeaveLocation = (this.list.length && this.$refs.dom_scrollContent.scrollTop) || 0 next() }, created() {