From 6447a9cfae682694c97654dec1e18a8376e27f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Fri, 23 Aug 2024 13:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/websocket.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/utils/websocket.js b/src/utils/websocket.js index 5540cb9..e4644f0 100644 --- a/src/utils/websocket.js +++ b/src/utils/websocket.js @@ -140,18 +140,18 @@ function webSocketOnMessage(msg) { } } if (result.type == -1 || result.type == 8 || result.type == 9) { - if(result.type == -1){ - if(result.data && result.data.token){ - tool.cookie.set("TOKEN", result.data.token); - } - }else{ + // if(result.type == -1){ + // if(result.data && result.data.token){ + // tool.cookie.set("TOKEN", result.data.token); + // } + // }else{ showNot = ElNotification.error({ title: '系统退出', message: result.msg, duration:0 }); handleError('系统退出', result.msg); - } + // } } eventBus.$emit('sockBack',result);