diff --git a/src/components/ChattyLLM/ChattyLLMInputForm.vue b/src/components/ChattyLLM/ChattyLLMInputForm.vue index 51da553de..9062cf83b 100644 --- a/src/components/ChattyLLM/ChattyLLMInputForm.vue +++ b/src/components/ChattyLLM/ChattyLLMInputForm.vue @@ -487,6 +487,7 @@ export default { }, beforeUnmount() { + this.streamingMessage = null this.pollMessageGenerationCancel?.() cancelTaskPositionPolling() if (this.pollMessageGenerationTimerId) { @@ -633,7 +634,9 @@ export default { this.$nextTick(() => { const chatAreaElem = this.$refs.chatArea - chatAreaElem.scrollTop = chatAreaElem.scrollHeight + if (chatAreaElem) { + chatAreaElem.scrollTop = chatAreaElem.scrollHeight + } }) },