From 4c8dd62090bd7bf8afdf0ce7c9b62007260830be Mon Sep 17 00:00:00 2001 From: zoujing Date: Sun, 10 Aug 2025 21:27:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/ChatMainList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index 626b4be..ae14e79 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -598,7 +598,7 @@ const sendWebSocketMessage = (messageType, messageContent, options = {}) => { return true; } catch (error) { console.error("发送WebSocket消息失败:", error); - + isSessionActive.value = false; return false; } }; @@ -607,6 +607,7 @@ const sendWebSocketMessage = (messageType, messageContent, options = {}) => { const sendChat = (message, isInstruct = false) => { if (!webSocketManager || !webSocketManager.isConnected()) { console.error("WebSocket未连接"); + isSessionActive.value = false; return; }