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; }