From 3667807a7b7418efc090ee3fa6a6b734bc3080bf Mon Sep 17 00:00:00 2001
From: xieb <vip_xiaobin810@163.com>
Date: Wed, 13 Sep 2023 20:36:29 +0800
Subject: [PATCH] Merge branch 'develop' of http://s16s652780.51mypc.cn:49896/r/yskj/iot_drone_web into develop

---
 src/mqtt/index.ts |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mqtt/index.ts b/src/mqtt/index.ts
index f6570df..2028edc 100644
--- a/src/mqtt/index.ts
+++ b/src/mqtt/index.ts
@@ -34,10 +34,13 @@
       ...OPTIONS,
       ...this._options,
     })
+    console.log(this._client, 'client')
     this._hasInit = true
     if (this._client) {
       this._client.on('reconnect', this._onReconnect)
-
+      this._client.on('connect', () => {
+        console.log('connect')
+      })
       // 消息监听
       this._client.on('message', this._onMessage)
 

--
Gitblit v1.9.3