From 58001b9affd8ff15b88d3ea0c697cb3c4a042dcc Mon Sep 17 00:00:00 2001 From: Miuss Date: Wed, 4 Dec 2024 15:41:58 +0800 Subject: [PATCH] update --- src/App.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index ae500d4..f053b3d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -116,8 +116,10 @@ const initScoket = async () => { sendPing() } - socket.onerror = function () { - Message.error('WebSocket连接失败') + socket.onclose = function () { + Message.warning('WebSocket已断连,正在重连中...') + + initScoket() } } @@ -546,6 +548,11 @@ a { &.is-active { background: #e7e7e730; + + .delete-btn { + display: none!important; + } + &>.detail { margin-top: 15px; border-top: 1px solid #eeeeee;