修复670灯光问题

This commit is contained in:
liub
2025-12-03 10:20:11 +08:00
parent cd6d529523
commit e2d07e984f
6 changed files with 38 additions and 17 deletions

View File

@ -799,7 +799,7 @@
return className;
},
handleRightClick: function(s, e) {
if (s === 0) {
console.log("消息");
uni.navigateTo({
@ -832,9 +832,8 @@
},
initMQ() {
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
if (mqttClient) {
// console.log("无需再次初始化")
resolve();
@ -953,7 +952,7 @@
if ("sta_LightGrade" in json) {
let lightingLevelText = json.sta_LightGrade === 1 ? 'hight' : json.sta_LightGrade === 2 ? 'low' :
let lightingLevelText = json.sta_LightGrade === 1 ? 'qiang' : json.sta_LightGrade === 2 ? 'ruo' :
'close';
receiveData.lightCurr = lightingLevelText;
}