From bf2cc43914947c58ef5c9279413124982eb91494 Mon Sep 17 00:00:00 2001 From: orenzhang Date: Wed, 25 Dec 2024 20:19:42 +0800 Subject: [PATCH] fix(scroll): set user scroll to false after chat finished --- src/components/ChatInput.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ChatInput.vue b/src/components/ChatInput.vue index 7276361..115cd58 100644 --- a/src/components/ChatInput.vue +++ b/src/components/ChatInput.vue @@ -215,6 +215,7 @@ const initWebSocket = () => { }; webSocket.value.onclose = () => { emits('setChatLoading', false); + emits('toggleUserBehavior', false); }; return new Promise((resolve, reject) => { webSocket.value.onopen = (e) => {