| | |
| | | import { RoomApi, RoomVO } from '@/api/ecg/room' |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {CACHE_KEY, useCache} from "@/hooks/web/useCache"; |
| | | import {ElMessage} from "element-plus"; |
| | | const { currentRoute, push } = useRouter() |
| | | const { wsCache } = useCache() |
| | | |
| | |
| | | |
| | | const roomConfirm = () => { |
| | | console.info(curSel.value) |
| | | |
| | | if (curSel.value.roomId === 0) { |
| | | ElMessage({ |
| | | message: '请先选择工作的位置!', |
| | | type: 'info', |
| | | duration: 3000 // 自动关闭时间,默认为3000ms |
| | | }); |
| | | return |
| | | } |
| | | |
| | | userStore.setRoomInfoAction(curSel.value) |
| | | push({ path: "/"}) |
| | | } |