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 相关状态