From dbb4bd5da24721a78a1fb714b7ab89331ee49b4d Mon Sep 17 00:00:00 2001 From: zhaoyz <11@22.com> Date: Tue, 6 Aug 2024 14:54:35 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0=E5=8F=91=E9=80=81ping?= =?UTF-8?q?=E7=9A=84=20id,name,date=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 | 3 +++ src/views/login/login.vue | 2 +- src/views/remote-manage/remote-control.vue | 2 +- vite.config.ts | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/stores/remote-ws-store.ts b/src/stores/remote-ws-store.ts index 9640793..85fdc9e 100644 --- a/src/stores/remote-ws-store.ts +++ b/src/stores/remote-ws-store.ts @@ -347,6 +347,7 @@ export const useRemoteWsStore = defineStore("remoteWs", { if (patient) { patient.medicineWS.send(JSON.stringify({msgType: "ping",patientName: name, idNum: id, + date: date, msg: + new Date()})) } }, @@ -380,6 +381,7 @@ export const useRemoteWsStore = defineStore("remoteWs", { } }, sendMedicine(args: { + msgType: string, name: string, id: string, date: string, @@ -392,6 +394,7 @@ export const useRemoteWsStore = defineStore("remoteWs", { const patient: any = this.patient[args.name + args.id + args.date + args.index] if (patient) { const params = { + msgType: args.msgType, patientName: args.name, idNum: args.id, date: args.date, diff --git a/src/views/login/login.vue b/src/views/login/login.vue index e7ade28..d5d274c 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -12,7 +12,7 @@