From f69b9b7c5cfa1193591f9eda67c9bb15f1a4ab58 Mon Sep 17 00:00:00 2001 From: yy <11@11.com> Date: Wed, 29 May 2024 14:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/remote-manage/part/remote-dialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/remote-manage/part/remote-dialog.vue b/src/views/remote-manage/part/remote-dialog.vue index 659caf5..2df54e3 100644 --- a/src/views/remote-manage/part/remote-dialog.vue +++ b/src/views/remote-manage/part/remote-dialog.vue @@ -43,6 +43,7 @@ const emit = defineEmits(['confirmRemote', 'errorRemote', 'breakRemote']) const dialogVisible = ref(false) const patientInfo = ref({} as any) const remoteWsStore = useRemoteWsStore(); +let currentIndex = -1; defineExpose({ open, @@ -50,8 +51,8 @@ defineExpose({ }) function open(i: number) { - remoteWsStore.setCurrentTaskIndex(i) - patientInfo.value = remoteWsStore.getRemoteTask()[remoteWsStore.getCurrentTaskIndex()]; + currentIndex = i + patientInfo.value = remoteWsStore.getRemoteTask()[currentIndex]; patientInfo.value.date = new Date(); dialogVisible.value = true; }