错误修复

This commit is contained in:
yy 2024-05-29 14:24:26 +08:00
parent 95bdf6cdff
commit f69b9b7c5c

View File

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