fix:新增主页跳转调用MQTT逻辑

This commit is contained in:
吉浩茹
2025-09-30 00:54:55 +08:00
parent bb5951df76
commit 3a2cc1ddc5
5 changed files with 216 additions and 53 deletions

View File

@ -73,7 +73,7 @@ const createMqtt = () => {
// 显示连接loading
uni.showLoading({
title: 'MQTT连接中...',
mask: true
// mask: true
});
client = mqtt.connect(mqtturl, options);
@ -242,7 +242,7 @@ const manualReconnect = () => {
closeMqtt();
setTimeout(() => {
createMqtt();
}, 1000);
}, 300);
};
export {