reset content scroll position
This commit is contained in:
parent
e61fcdbe49
commit
44b5a6a67f
2 changed files with 4 additions and 0 deletions
|
|
@ -243,6 +243,9 @@ var vm = new Vue({
|
|||
this.itemSelectedDetails = null
|
||||
return
|
||||
}
|
||||
if (this.$refs.content) {
|
||||
this.$refs.content.scrollTop = 0
|
||||
}
|
||||
this.itemSelectedDetails = this.itemsById[newVal]
|
||||
if (this.itemSelectedDetails.status == 'unread') {
|
||||
this.itemSelectedDetails.status = 'read'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue