修复当试听列表为空时,无法切到其他界面的Bug

pull/96/head
lyswhut 2019-09-29 15:48:47 +08:00
parent 7236f8929c
commit c029eccdd3
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#### 修复
- 修正火影皮肤名字
- 修复当试听列表为空时无法切到其他界面的Bug

View File

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