From 1e6116d01fb72b50c1143080c2c2faa928185488 Mon Sep 17 00:00:00 2001 From: GranceWang <1163260785@qq.com> Date: Fri, 2 Aug 2024 13:49:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ping=E5=A2=9E=E5=8A=A0=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/remote-ws-store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/remote-ws-store.ts b/src/stores/remote-ws-store.ts index 6f365b7..d2ac964 100644 --- a/src/stores/remote-ws-store.ts +++ b/src/stores/remote-ws-store.ts @@ -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) {