wzh 2 年之前
父节点
当前提交
9c4523a8b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/device/detail.vue

+ 1 - 1
pages/device/detail.vue

@@ -673,7 +673,7 @@ export default {
       let topic = "";
       let title = "升级";
       topic = "/" + device.productId + "/" + device.serialNumber + "/ota/get";
-      message = '{"version":"' + this.firmware.version + '","downloadUrl":"' + this.getDownloadUrl(this.firmware.filePath) + '"}';
+      message = '{"version":"' + this.firmware.version + '","downloadUrl":"' + this.getDownloadUrl(this.firmware.filePath) + '","size":"'+this.firmware.size+'"}';
       this.$mqttTool.publish(topic, message,title).then(res => {
         this.notifySuccess(res);
       }).catch(res => {