From 81eaf1aea588f309b35a51b836643a5b97f83e3d Mon Sep 17 00:00:00 2001 From: jyy <935090232@qq.com> Date: Fri, 09 Apr 2021 17:48:21 +0800 Subject: [PATCH] 修复bug2 --- zq-erp/src/main/resources/templates/views/common/login.html | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/common/login.html b/zq-erp/src/main/resources/templates/views/common/login.html index 8331941..0e119c6 100644 --- a/zq-erp/src/main/resources/templates/views/common/login.html +++ b/zq-erp/src/main/resources/templates/views/common/login.html @@ -312,7 +312,6 @@ }); loginQrCodeKey="loginQrCodeKey_" + MTools.randomStr(); let qrInfo={webClientId:webClientId,loginQrCodeKey:loginQrCodeKey} - console.log(qrInfo); qrcode.makeCode(JSON.stringify(qrInfo)); $('#qrCodeIcon canvas').show(); @@ -390,7 +389,7 @@ //实现化WebSocket对象,指定要连接的服务器地址与端口 建立连接 let wsPath= getRootPath(); var socketUrl= wsPath.replace("http","ws")+ "/webSocketServer?userId="+webClientId; - console.log(socketUrl); + if(socket!=null){ socket.close(); socket=null; @@ -403,7 +402,7 @@ }; //获得消息事件 socket.onmessage = function(msg) { - console.log(msg); + var serverMsg = JSON.parse(msg.data); if(serverMsg.msgType==1){ -- Gitblit v1.9.1