mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
perf: 再次点击滚动到未读条目
This commit is contained in:
parent
c13f65611f
commit
b0b7c63561
@ -278,8 +278,8 @@ export default {
|
|||||||
const dialog = this.dialogList.find(({unread}) => unread > 0)
|
const dialog = this.dialogList.find(({unread}) => unread > 0)
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
$A.scrollToView(this.$refs[`dialog_${dialog.id}`][0], {
|
$A.scrollToView(this.$refs[`dialog_${dialog.id}`][0], {
|
||||||
behavior: 'instant',
|
behavior: 'smooth',
|
||||||
inline: 'end',
|
scrollMode: 'if-needed',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user