feat: ping增加传参字段

This commit is contained in:
GranceWang 2024-08-02 13:49:38 +08:00
parent 49138bfcc7
commit 1e6116d01f

View File

@ -342,7 +342,9 @@ export const useRemoteWsStore = defineStore("remoteWs", {
loopSendMedicinePing(name: string, id: string, date: string, index: number, cb: any){
const patient = this.patient[name + id + date + index]
if (patient) {
patient.medicineWS.send(JSON.stringify({msgType: "ping"}))
patient.medicineWS.send(JSON.stringify({msgType: "ping",patientName: name,
idNum: id,
date: date}))
}
},
medicineOnclose(name: string, id: string, date: string, index: number, cb: any) {