From e34d840c673e80af9a182a232be671ff2fca5508 Mon Sep 17 00:00:00 2001 From: gaoxq <376340421@qq.com> Date: Thu, 2 Apr 2026 18:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-vue/src/components/TopNavbar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/web-vue/src/components/TopNavbar.vue b/web-vue/src/components/TopNavbar.vue index 768c06f..14d1bd3 100644 --- a/web-vue/src/components/TopNavbar.vue +++ b/web-vue/src/components/TopNavbar.vue @@ -178,6 +178,7 @@ const handleUserCommand = (command) => { passwordVisible.value = true } else if (command === 'logout') { ElMessageBox.confirm('确定退出登录吗?', '提示', { type: 'warning' }).then(() => { + chatService.disconnect() // 断开 WebSocket 连接 userStore.logout() router.push('/login') }).catch(() => {})