diff --git a/socket/index.js b/socket/index.js index 6d581450..b08df317 100644 --- a/socket/index.js +++ b/socket/index.js @@ -88,16 +88,16 @@ const webSocketOnMessage = (e) => { // WebSocket关闭处理 const closeWebsocket = (e) => { console.log("WebSocket连接已关闭:", e); - if (!hasShownNotification) { - Notification({ - title: "告警", - message: "WebSocket连接已关闭", - position: "bottom-right", - type: "warning", - duration: 2000, - }); - hasShownNotification = true; // 更新状态,防止再次显示 - } + // if (!hasShownNotification) { + // Notification({ + // title: "告警", + // message: "WebSocket连接已关闭", + // position: "bottom-right", + // type: "warning", + // duration: 2000, + // }); + // hasShownNotification = true; // 更新状态,防止再次显示 + // } // 清除所有定时器 clearTimeout(timeoutObj); diff --git a/src/App.vue b/src/App.vue index c0e0ff38..5eae690f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@