修改设备实时状态参数,同后端一起修改

This commit is contained in:
fengerli
2025-08-30 14:34:44 +08:00
parent 82ca470b2d
commit c537e17780
7 changed files with 14 additions and 15 deletions

View File

@ -119,9 +119,8 @@ import Paho from 'paho-mqtt';
import allConfigs from '../config/index.js';
// 根据环境选择正确的配置
const env = 'development'; //production //开发of线上 改这里就行
const env = 'production'; //production //开发of线上 改这里就行
const config = allConfigs[env];
class MqttClient {
constructor() {
this.client = null;

View File

@ -1,5 +1,5 @@
import config from '../config/index.js';
const env = 'development'; //production development //开发of线上 改这里就行
const env = 'production'; //production development //开发of线上 改这里就行
const BASE = config[env];
const request = (options) => {
console.log("options"+JSON.stringify(options),BASE.BASE_URL)