This commit is contained in:
GranceWang 2024-08-05 15:18:57 +08:00
parent 6bb2d7aff6
commit 631e67fa6b
2 changed files with 3 additions and 3 deletions

View File

@ -347,7 +347,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
if (patient) { if (patient) {
patient.medicineWS.send(JSON.stringify({msgType: "ping",patientName: name, patient.medicineWS.send(JSON.stringify({msgType: "ping",patientName: name,
idNum: id, idNum: id,
date: date})) msg: + new Date()}))
} }
}, },
medicineOnclose(name: string, id: string, date: string, index: number, cb: any) { medicineOnclose(name: string, id: string, date: string, index: number, cb: any) {

View File

@ -274,8 +274,8 @@ let currentDocMedicine: any;
const medicineSpeedTemp: any = {}; const medicineSpeedTemp: any = {};
const connectionUnityLoading=ref(false); const connectionUnityLoading=ref(false);
onMounted(() => { onMounted(() => {
if (!currentRemote.value?.isRemote) { if (!(currentRemote.value&&currentRemote.value.isRemote)) {
router.replace('/remote-manage/remote-manage'); router.push('/remote-manage/remote-manage');
return; return;
} }
msgLogScrollBottom() msgLogScrollBottom()