移除onclose

This commit is contained in:
yy 2024-06-05 09:24:36 +08:00
parent 75a4eec74e
commit 0f7622a264

View File

@ -106,10 +106,6 @@ export const useRemoteWsStore = defineStore("remoteWs", {
}))
}
vitalWS.onclose = () => {
ElMessage.info("远程管理" + (index + 1) + "已断开")
}
vitalWS.onerror = () => {
ElMessage.error("远程管理" + (index + 1) + "出错")
}
@ -148,10 +144,6 @@ export const useRemoteWsStore = defineStore("remoteWs", {
}))
}
chatWS.onclose = () => {
ElMessage.info("远程管理" + (index + 1) + "通讯已断开")
}
chatWS.onerror = () => {
ElMessage.error("远程管理" + (index + 1) + "通讯出错")
}