From 2886f1890db21d3f921ac49983bd62182a0ff2d8 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Tue, 2 Dec 2025 10:30:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(home):=20=E6=9A=82=E6=97=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=AF=B9=E8=AF=9D=E6=BB=9A=E5=8A=A8=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index/index.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index 918f4a5..4dc9d1a 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -507,7 +507,7 @@ export default { scrollToBottom() { // 如果正在加载更多,不执行滚动 // 新建对话时不执行滚动 - if (this.isLoadingMore || !this.currentConversationId) return; + if (this.isLoadingMore) return; // 使用nextTick确保DOM已更新 this.$nextTick(() => { @@ -903,11 +903,7 @@ export default { console.log("触发上拉刷新"); // 如果已经没有更多数据或正在切换对话或当前对话为空(新建对话),不再触发上拉刷新 - if ( - this.noMoreData || - this.isSwitchingConversation || - !this.currentConversationId - ) { + if (this.noMoreData || this.isSwitchingConversation) { return; }