This commit is contained in:
gyq
2024-07-04 13:35:59 +08:00
parent c7758f66d7
commit 1f20c18384

View File

@@ -179,9 +179,9 @@ function initWebSocket(wsUrl = import.meta.env.VITE_API_WSS) {
}) })
// 连接已关闭或无法打开 // 连接已关闭或无法打开
ws.value.addEventListener('WebSocket.CLOSED', function () { // ws.value.addEventListener('WebSocket.CLOSED', function () {
}) // })
// 接收消息 // 接收消息
// ws.value.onmessage = function (e) { // ws.value.onmessage = function (e) {