修复,多个连接,状态提示错误, 并且去除索引

This commit is contained in:
republicline 2025-09-07 22:38:40 +08:00
parent ddc2b28726
commit 003fd7881c

View File

@ -376,7 +376,8 @@ const subscribeChat = () => {
messageList.value = msg.history; messageList.value = msg.history;
} }
if (msg.msgType == "destroy") { if (msg.msgType == "destroy") {
ElMessageBox.confirm('远程查看' + (currentIndex + 1) + '已断开与手术室连接', '提示', { // ElMessageBox.confirm('' + (currentIndex + 1) + '', '', {
ElMessageBox.confirm('远程查看' + '已断开与手术室连接', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
type: 'info' type: 'info'
}).then(() => { }).then(() => {
@ -386,7 +387,8 @@ 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 + 1) + ' 通讯连接断开,正在尝试重连……') // ElMessage.info('' + (currentIndex + 1) + ' ')
ElMessage.info('远程查看, 通讯连接断开,正在尝试重连……')
subscribeChat() subscribeChat()
}, 3000) }, 3000)
}) })