zhuguifei
2025-08-22 8304eac2a45a32b00563c03a2f3fd303ecd5872a
pages/tabBar/general.vue
@@ -367,6 +367,9 @@
               // #endif
               // #ifdef APP-PLUS
               url: 'wx://' + this.$api.mqttBaseUrl + ':8083/mqtt',
               // #endif
               // #ifdef MP-WEIXIN
               url: 'wss://' + this.$api.mqttBaseUrl + '/mqtt', // 必须用 wss,端口通常为443可省略
               // #endif
               clientId: this.deviceId,
               username: account.username,
@@ -397,7 +400,9 @@
               qos: 0
            }).then(res => {
               console.error(res)
            })
            })
            //订阅发送指令返回结果
            // this.$mqttTool.subscribe({
            //    topic: this.$constant.SERVICE_RES_EQU_CMD,
@@ -456,7 +461,7 @@
         },
         goCharts(e) {
            uni.navigateTo({
               url: "/pages/charts/charts"
               url: "/packageA/pages/charts/charts"
            })
         },
         getOrderList(date1, date2) {
@@ -573,7 +578,6 @@
<style lang="scss" scoped>
   .app {
      width: 100%;
      max-height: 100vh;
      overflow: hidden;
   }