From 74ad066b13429169b3990a507a978a9d4e3fc0cf Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 17 九月 2025 22:27:04 +0800
Subject: [PATCH] Merge branch 'ID2093-添加当前时间' into test
---
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