mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-12 17:08:11 +00:00
perf: 优化触发回复页面滚动
This commit is contained in:
parent
21ad0632b4
commit
c278806548
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user