| | |
| | | import { ElMessage } from "element-plus/es"; |
| | | import { Local } from "@/utils/storage"; |
| | | import type { DeviceLoginRecord } from './type/user.type'; |
| | | import { logoutForSubScreen } from "@/utils/httpApi"; |
| | | import { logOutApi } from "@/api/user"; |
| | | |
| | | export const useBedsideAuxiliaryScreenStore = defineStore( |
| | | "bedsideAuxiliaryScreen", |
| | |
| | | |
| | | |
| | | /** 退出登录 */ |
| | | const logout = async (deviceCode: string) => { |
| | | await logoutForSubScreen(deviceCode); |
| | | const logout = async (deviceCodeStr: string) => { |
| | | await logOutApi(deviceCodeStr); |
| | | setUserInfo(null); |
| | | }; |
| | | |