From 9cc59c17892a7e69de54e06b5931e78c9b05551c Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 02 九月 2025 09:24:34 +0800
Subject: [PATCH] 添加mqtt登出
---
App.vue | 36 +++++++++++++++++-------------------
1 files changed, 17 insertions(+), 19 deletions(-)
diff --git a/App.vue b/App.vue
index 87c3ab4..efd3631 100644
--- a/App.vue
+++ b/App.vue
@@ -2,11 +2,16 @@
import Vue from 'vue'
export default {
+ //鍏ㄥ眬鍙橀噺(鍚屾鏁版嵁鍙敤鍏ㄥ眬鍙橀噺锛屽紓姝ユ暟鎹娇鐢╲uex)
globalData: {
- token: ""
+ token: "",
+ //褰撳墠閫夋嫨tab
+ selectTab: 0,
+ //褰撳墠缃戠粶妯″紡锛坈loud-浜戞湇鍔°�乴an-灞�鍩熺綉锛�
+ mode: "",
},
onLaunch: function() {
-
+
//姝ゅ涓簎nipush2.0鐨勬帹閫佹柟娉�
@@ -27,19 +32,17 @@
//鎺ㄩ�佷粎鏀寔Android ios鍘熺敓骞冲彴
// #ifdef APP-PLUS
- console.log('APP-PLUS:')
// 姝ゅ涓簎nipush1.0鐨勬帹閫佹柟娉�
- plus.push.getClientInfoAsync((info) => {
- let cid = info["clientid"];
- console.log('瀹㈡埛绔帹閫佹爣璇�:', cid)
- this.$store.dispatch('setCid', cid); // 浣跨敤 action 鏇存柊 cid
- });
+ // plus.push.getClientInfoAsync((info) => {
+ // let cid = info["clientid"];
+ // console.log('瀹㈡埛绔帹閫佹爣璇�:', cid)
+ // this.$store.dispatch('setClientPushId', cid); // 浣跨敤 action 鏇存柊 cid
+
+ // });
// #endif
- uni.onPushMessage((res) => {
- console.log("鏀跺埌鎺ㄩ�佹秷鎭細", res) //鐩戝惉鎺ㄩ�佹秷鎭�
- })
-
-
+ // uni.onPushMessage((res) => {
+ // console.log("鏀跺埌鎺ㄩ�佹秷鎭細", res) //鐩戝惉鎺ㄩ�佹秷鎭�
+ // })
uni.getSystemInfo({
success: function(e) {
@@ -96,12 +99,7 @@
if (this.$mqttTool.client) {
console.log(this.$mqttTool.client.connected)
}
- // if(this.$mqttTool.client){
- // this.$mqttTool.end().then(res =>{
- // console.log('缁堟锛�')
- // })
-
- // }
+
}
},
--
Gitblit v1.9.3