perf: 再次点击滚动到未读条目

This commit is contained in:
kuaifan 2022-03-07 01:19:36 +08:00
parent c13f65611f
commit b0b7c63561

View File

@ -278,8 +278,8 @@ export default {
const dialog = this.dialogList.find(({unread}) => unread > 0)
if (dialog) {
$A.scrollToView(this.$refs[`dialog_${dialog.id}`][0], {
behavior: 'instant',
inline: 'end',
behavior: 'smooth',
scrollMode: 'if-needed',
})
}
}