refactor(home): 暂时移除对话滚动限制条件
This commit is contained in:
parent
645f1289ca
commit
2886f1890d
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue