mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-23 20:44:58 +08:00
msgType: getMedicine,就弹出一个给药成功
This commit is contained in:
parent
5b6d849a6d
commit
41089bbd71
|
@ -328,8 +328,8 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
|||
} else {
|
||||
patient.medicineWS.send(JSON.stringify({msgType: "heartbeat"}))
|
||||
}
|
||||
// 抛出信息用于vue页面监听
|
||||
const shouldCallBackList=['pong','unityRequestConnection','unityResponseConnection']
|
||||
// 抛出信息用于vue页面监听msgType: getMedicine
|
||||
const shouldCallBackList=['pong','unityRequestConnection','unityResponseConnection',"getMedicine"]
|
||||
if (shouldCallBackList.includes(data.msgType)) {
|
||||
cb(e)
|
||||
}
|
||||
|
|
|
@ -318,6 +318,9 @@ watch(subscribeMedicineData,(newValue:any,oldValue:any)=>{
|
|||
ElMessage.info('连接断开')
|
||||
}
|
||||
break;
|
||||
case 'getMedicine':
|
||||
ElMessage.success('给药成功')
|
||||
break;
|
||||
case 'pong':
|
||||
timeDiffPing.value=newValue.msg;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user