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 @@
密码登录 - + 验证码登录