索引下标问题, 断连后中止原有的重连回调函数

This commit is contained in:
republicline 2025-09-07 18:05:45 +08:00
parent 361d76b5c3
commit 68601dda67

View File

@ -386,7 +386,7 @@ const subscribeChat = () => {
}) })
remoteWsStore.chatOnclose(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex, () => { remoteWsStore.chatOnclose(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, currentIndex, () => {
setTimeout(() => { setTimeout(() => {
ElMessage.info('远程查看' + currentIndex + ' 通讯连接断开,正在尝试重连……') ElMessage.info('远程查看' + (currentIndex + 1) + ' 通讯连接断开,正在尝试重连……')
subscribeChat() subscribeChat()
}, 3000) }, 3000)
}) })