From 2938528c2e56932aba26ba152747aa14a106c14c Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 27 May 2021 11:30:03 +0800 Subject: [PATCH] =?UTF-8?q?sock=20=E6=96=AD=E7=BA=BF=E9=87=8D=E8=BF=9E=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/sock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/sock.js b/src/utils/sock.js index 9cc85c0f6..16b000d8a 100644 --- a/src/utils/sock.js +++ b/src/utils/sock.js @@ -56,11 +56,11 @@ StompClient.prototype = { that.status = false; console.info(`通信连接已断开!`); checkLoginLine().then((resp) => { - if (resp.code !== 40004) { + if (resp.code !== 40004 && resp.code !== 40005) { that.count++; that.reconnect(that.count); } - }).catch((err) => { + }).catch(() => { that.count++; that.reconnect(that.count); });