|
|
@ -103,19 +103,19 @@ import { |
|
|
|
getInitState, |
|
|
|
scanConsumables, |
|
|
|
updateTipsNum, |
|
|
|
} from '../../../services/Index/index' |
|
|
|
import { useConsumablesStore, useEmergencyStore } from '../../../store' |
|
|
|
import { useDeviceStore } from '../../../store/index' |
|
|
|
import { ConsumeType, eventBus } from '../../../eventBus' |
|
|
|
import { ReactionPlate, BottleGroup, LiquidState } from '../../../types/Index' |
|
|
|
import { createWebSocket } from '../../../websocket/socket' |
|
|
|
} from '@/services/Index/index' |
|
|
|
import { useConsumablesStore, useEmergencyStore } from '@/store' |
|
|
|
import { useDeviceStore } from '@/store/index' |
|
|
|
import { ConsumeType, eventBus } from '@/eventBus' |
|
|
|
import { ReactionPlate, BottleGroup, LiquidState } from '@/types/Index' |
|
|
|
import { createWebSocket } from '@/websocket/socket' |
|
|
|
import type { |
|
|
|
ConsumablesStateMessage, |
|
|
|
SensorStateMessage, |
|
|
|
EmergencyPosStateMessage, |
|
|
|
} from '../../../websocket/socket' |
|
|
|
import { getServerInfo } from '../../../utils/getServerInfo' |
|
|
|
import { formatScanReports } from '../../../utils/errorHandler' |
|
|
|
} from '@/websocket/socket' |
|
|
|
import { getServerInfo } from '@/utils/getServerInfo' |
|
|
|
import { formatScanReports } from '@/utils/errorHandler' |
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
const { wsUrl } = getServerInfo('/api/v1/app/ws/state') |
|
|
|
const socket = createWebSocket(wsUrl) |
|
|
|