fix: avoid auto re-locking scroll after tasks
This commit is contained in:
parent
ce5032cef4
commit
8ead6ebc08
@ -1228,9 +1228,6 @@ const appOptions = {
|
||||
}
|
||||
});
|
||||
|
||||
// 重置滚动状态
|
||||
this.chatEnableAutoScroll();
|
||||
|
||||
// 清理Markdown缓存
|
||||
if (this.markdownCache) {
|
||||
this.markdownCache.clear();
|
||||
@ -2219,8 +2216,9 @@ const appOptions = {
|
||||
this.inputClearMessage();
|
||||
this.inputSetLineCount(1);
|
||||
this.inputSetMultiline(false);
|
||||
this.chatEnableAutoScroll();
|
||||
this.scrollToBottom();
|
||||
if (this.autoScrollEnabled) {
|
||||
this.scrollToBottom();
|
||||
}
|
||||
this.autoResizeInput();
|
||||
|
||||
// 发送消息后延迟更新当前上下文Token(关键修复:恢复原逻辑)
|
||||
|
||||
@ -329,7 +329,6 @@ export const useChatStore = defineStore('chat', {
|
||||
this.currentMessageIndex = -1;
|
||||
this.streamingMessage = false;
|
||||
this.clearExpandedBlocks();
|
||||
this.enableAutoScroll();
|
||||
this.clearThinkingLocks();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user