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() {