From c278806548c493beac6dbf896ca5768bbfeb505b Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 19 Jun 2022 02:13:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E9=A1=B5=E9=9D=A2=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/DialogWrapper.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index b529138cf..35deb4f81 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -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() {