fix(home): 修复新建对话时的滚动和刷新问题

This commit is contained in:
yangzhe 2025-11-28 16:20:17 +08:00
parent c7bf6bd6b1
commit 70cbde0d11
1 changed files with 4 additions and 3 deletions

View File

@ -492,7 +492,8 @@ export default {
scrollToBottom() { scrollToBottom() {
// //
if (this.isLoadingMore) return; //
if (this.isLoadingMore || !this.currentConversationId) return;
// 使nextTickDOM // 使nextTickDOM
this.$nextTick(() => { this.$nextTick(() => {
@ -791,8 +792,8 @@ export default {
onScrollToUpper() { onScrollToUpper() {
console.log("触发上拉刷新"); console.log("触发上拉刷新");
// //
if (this.noMoreData || this.isSwitchingConversation) { if (this.noMoreData || this.isSwitchingConversation || !this.currentConversationId) {
return; return;
} }