Browse Source

更新OTA升级失败bug

yangfei 1 year ago
parent
commit
bc674ebb13
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/OTAUpgrade.vue

+ 4 - 1
src/components/OTAUpgrade.vue

@@ -80,7 +80,10 @@ export default {
           headers: {
             'Content-Type': 'application/json'
           },
-          body: JSON.stringify({ devices: this.selectedDevices })
+          body: JSON.stringify({
+            device_id: this.selectedDeviceId,
+            version: this.currentVersion
+          })
         });
         
         if (response.ok) {