From f2aadae922b9829a3cbc6b465dc220c11a2e5b8a Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 16 九月 2025 13:35:46 +0800
Subject: [PATCH] ID1766-x
---
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..d40dbc8 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 { logOutApi } from "@/api/user";
export const useBedsideAuxiliaryScreenStore = defineStore(
"bedsideAuxiliaryScreen",
@@ -81,8 +82,9 @@
/** 退出登录 */
- const logout = () => {
-
+ const logout = async (deviceCodeStr: string) => {
+ await logOutApi(deviceCodeStr);
+ setUserInfo(null);
};
// SSE 相关状态
--
Gitblit v1.8.0