From 0084a4e91c491322de7b59c4f6efe8e2ca491d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Wed, 12 Jun 2024 14:03:59 +0800 Subject: [PATCH] web --- common/js/websocket.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/js/websocket.js b/common/js/websocket.js index 99cf73e..7100ec3 100644 --- a/common/js/websocket.js +++ b/common/js/websocket.js @@ -32,6 +32,7 @@ class webSocketUtils { console.log('正准备建立websocket中...'); // uni.hideLoading(); // 返回实例 + uni.hideLoading() return this.socketTask; }, }); @@ -135,6 +136,10 @@ class webSocketUtils { clearInterval(this.heartbeatInterval); //如果不是人为关闭的话,进行重连 if (!this.is_open_socket) { + uni.showLoading({ + title: '加载中', + mask: true + }) console.log('进行重连'); this.canReconnect = true; this.reconnectTimeOut = setInterval(() => {