Merge remote-tracking branch 'origin/一期' into 一期

This commit is contained in:
熊猫 2024-05-29 19:00:52 +08:00
commit c575509eaf
2 changed files with 2 additions and 4 deletions

View File

@ -83,7 +83,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
Session.set("remoteTasks", this.remoteTasks)
},
getActiveRemoteTask() {
let index = 0;
let index = 0
for (let i = 0; i < this.remoteTasks.length; i++) {
if (this.remoteTasks[i].isRemote) index = i
}

View File

@ -202,9 +202,7 @@ const breakRemote = () => {
remoteWsStore.getRemoteTask()[currentIndex]
remoteWsStore.disconnect(remoteItem.value.patient, remoteItem.value.patientId, remoteItem.value.date, currentIndex)
remoteWsStore.resetRemoteTask(currentIndex)
if (remoteWsStore.getActiveRemoteTask()) {
showData(remoteWsStore.getActiveRemoteTask())
}
showData(remoteWsStore.getActiveRemoteTask())
emit('breakRemote')
}