perf: 优化触发回复页面滚动

This commit is contained in:
kuaifan 2022-06-19 02:13:36 +08:00
parent 21ad0632b4
commit c278806548

View File

@ -1073,8 +1073,12 @@ export default {
},
onReply() {
this.replyId = this.operateItem.id;
const {tail} = this.scrollInfo()
this.replyId = this.operateItem.id
this.inputFocus()
if (tail <= 10) {
requestAnimationFrame(this.onToBottom)
}
},
onCancelReply() {