@jiabaida/tools 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -259,7 +259,8 @@ export class MqttServer {
259
259
  if (isLast) {
260
260
  await sleep(300);
261
261
  this.mqttPublish = false;
262
- this.$store?.commit('setMqttPublish', false);
262
+ this.$store?.setMqttPublish(false);
263
+ // this.$store?.commit('setMqttPublish', false);
263
264
  uni.removeStorageSync && uni.removeStorageSync(`${deviceId}_mqttPublish`);
264
265
  }
265
266
  } catch (error) {
@@ -306,7 +307,8 @@ export class MqttServer {
306
307
  if (this.publishObj.isLast) {
307
308
  await sleep(300);
308
309
  this.mqttPublish = false;
309
- this.$store?.commit('setMqttPublish', false);
310
+ this.$store?.setMqttPublish(false);
311
+ // this.$store?.commit('setMqttPublish', false);
310
312
  uni.removeStorageSync && uni.removeStorageSync(`${this.publishObj.deviceId}_mqttPublish`);
311
313
  }
312
314
  }
@@ -330,7 +332,8 @@ export class MqttServer {
330
332
  async writePublishInfoCmd(values) {
331
333
  clearTimeout(this.timer);
332
334
  this.mqttPublish = true;
333
- this.$store?.commit('setMqttPublish', true);
335
+ this.$store?.setMqttPublish(true);
336
+ // this.$store?.commit('setMqttPublish', true);
334
337
  this.mqttCode = values[2];
335
338
  let res = null;
336
339
  this.setPassthroughType = 1;
@@ -356,7 +359,8 @@ export class MqttServer {
356
359
  }
357
360
  this.timer = setTimeout(() => {
358
361
  this.mqttPublish = false;
359
- this.$store?.commit('setMqttPublish', false);
362
+ this.$store?.setMqttPublish(false);
363
+ // this.$store?.commit('setMqttPublish', false);
360
364
  }, 30000);
361
365
  }
362
366
  }
package/src/index.js CHANGED
@@ -12,3 +12,4 @@ export * from './core/rsaEncrypt';
12
12
  export * from './core/tcpServer.js';
13
13
  export * from './core/TelinkApi';
14
14
  export * from './core/Transfer';
15
+