From fee7fda208a1b00aac6b213e1acc7d7b0bbd45a1 Mon Sep 17 00:00:00 2001 From: zoujing Date: Sun, 10 Aug 2025 17:14:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=AD=97?= =?UTF-8?q?=E6=9C=BA=E6=95=88=E6=9E=9C=E9=97=AA=E7=83=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/ChatMainList.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index cc4ad36..87bb41d 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -344,6 +344,7 @@ const initWebSocket = () => { // 错误回调 onError: (error) => { + isSessionActive.value = false; console.error("WebSocket错误:", error); }, @@ -367,6 +368,10 @@ const initWebSocket = () => { // 处理WebSocket消息 const handleWebSocketMessage = (data) => { + if(loadingTimer) { + clearInterval(loadingTimer); + loadingTimer = null; + } const aiMsgIndex = chatMsgList.value.length - 1; if (!chatMsgList.value[aiMsgIndex] || aiMsgIndex < 0) { return;