From c980edafe5bf00f9cfe5d999896bb3bb971c8943 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 10 九月 2025 19:49:28 +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