错误修复

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 dialogVisible = ref(false)
const patientInfo = ref({} as any) const patientInfo = ref({} as any)
const remoteWsStore = useRemoteWsStore(); const remoteWsStore = useRemoteWsStore();
let currentIndex = -1;
defineExpose({ defineExpose({
open, open,
@ -50,8 +51,8 @@ defineExpose({
}) })
function open(i: number) { function open(i: number) {
remoteWsStore.setCurrentTaskIndex(i) currentIndex = i
patientInfo.value = remoteWsStore.getRemoteTask()[remoteWsStore.getCurrentTaskIndex()]; patientInfo.value = remoteWsStore.getRemoteTask()[currentIndex];
patientInfo.value.date = new Date(); patientInfo.value.date = new Date();
dialogVisible.value = true; dialogVisible.value = true;
} }