From ba616e9307681da4781b7610ec3c27721d793379 Mon Sep 17 00:00:00 2001
From: guifei zhu <guifeizhu@guifeideiMac.local>
Date: 星期三, 18 九月 2024 12:13:37 +0800
Subject: [PATCH] 添加mqtt通讯

---
 main.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/main.js b/main.js
index d16dc74..f1d37dd 100644
--- a/main.js
+++ b/main.js
@@ -16,12 +16,24 @@
     // 鍏ㄥ眬鎸傝浇鍚庝娇鐢�
 Vue.prototype.$api = api
 
+import constant from '@/common/constant.js'
+    // 鍏ㄥ眬鎸傝浇鍚庝娇鐢�
+Vue.prototype.$constant = constant
+
+
 import lget from '@/common/loadshget.js'
     // 鍏ㄥ眬鎸傝浇鍚庝娇鐢�
-Vue.prototype.$lget = lget
+Vue.prototype.$lget = lget
+
+import mqttTool from './lib/mqttTool.js'
+Vue.prototype.$mqttTool = mqttTool
+
+ 
 
 //鍏ㄥ眬鐩戞帶瀹氭椂鍣紙鍦ㄩ〉闈娇鐢ㄥ眬閮ㄥ畾鏃跺櫒浼氬嚭鐜版棤娉曞叧闂棶棰橈級
-Vue.prototype.$monitorTimer = null
+Vue.prototype.$monitorTimer = null
+
+
 
 Vue.config.productionTip = false
 App.mpType = 'app'

--
Gitblit v1.9.3