From c573cd85962d0f2ae1dd542f3e10e4097e63091c Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期五, 12 九月 2025 11:42:18 +0800
Subject: [PATCH] ID1766-暂存

---
 src/store/bedsideAuxiliaryScreen.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/store/bedsideAuxiliaryScreen.ts b/src/store/bedsideAuxiliaryScreen.ts
index d3a6a9c..edf2057 100644
--- a/src/store/bedsideAuxiliaryScreen.ts
+++ b/src/store/bedsideAuxiliaryScreen.ts
@@ -15,6 +15,7 @@
 import { ElMessage } from "element-plus/es";
 import { Local } from "@/utils/storage";
 import type { DeviceLoginRecord } from './type/user.type';
+import { logoutForSubScreen } from "@/utils/httpApi";
 
 export const useBedsideAuxiliaryScreenStore = defineStore(
   "bedsideAuxiliaryScreen",
@@ -81,8 +82,9 @@
 
 
     /** 退出登录 */
-    const logout = () => {
-
+    const logout = async (deviceCode: string) => {
+      await logoutForSubScreen(deviceCode);
+      setUserInfo(null);
     };
 
     // SSE 相关状态

--
Gitblit v1.8.0