From 8fcdf617e0877f337115294210c86aaf479de628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harry=E9=BB=84?= <511968666@qq.com> Date: Tue, 19 Sep 2023 06:49:28 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/hiprint/hiprint.bundle.js.=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96disAutoConnect=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cwebsocket=E6=B2=A1=E6=9C=89=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=8E=89=20=E5=8A=A0=E4=B8=8Awidow.autoConnect=E8=BF=99?= =?UTF-8?q?=E4=B8=AA=E6=9D=A1=E4=BB=B6=20=E5=9C=A8=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E5=90=8E=20=E5=BF=85=E9=A1=BB=E4=B8=BB=E5=8A=A8=E8=B0=83?= =?UTF-8?q?=E7=94=A8autoConnect=E6=96=B9=E6=B3=95=E6=89=8D=E8=83=BD=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=90=AF=E7=94=A8websocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Harry黄 <511968666@qq.com> --- src/hiprint/hiprint.bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hiprint/hiprint.bundle.js b/src/hiprint/hiprint.bundle.js index 21f1852..cda5f27 100644 --- a/src/hiprint/hiprint.bundle.js +++ b/src/hiprint/hiprint.bundle.js @@ -10600,7 +10600,7 @@ var hiprint = function (t) { p.a.instance.init(t), p.a.instance.providers && p.a.instance.providers.forEach(function (t) { t.addElementTypes(a.instance); }); - if (p.a.instance.host != hiwebSocket.host || p.a.instance.token != hiwebSocket.token) { + if (window.autoConnect && (p.a.instance.host != hiwebSocket.host || p.a.instance.token != hiwebSocket.token)) { hiwebSocket.stop() p.a.instance.host && (hiwebSocket.host = p.a.instance.host); p.a.instance.token && (hiwebSocket.token = p.a.instance.token); -- Gitee