소스 검색

修改ota手动下发入参为deviceKey

Xiahai 1 년 전
부모
커밋
2e52c75ca4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/iot/ota-update/update/component/deviceList.vue

+ 2 - 2
src/views/iot/ota-update/update/component/deviceList.vue

@@ -130,9 +130,9 @@ export default defineComponent({
     };
     // 手动下发
     const distribute = (row: any) => {
-      const deviceId = row.deviceId;
+      const deviceKey = row.deviceKey;
       const strategyId = row.strategyId;
-      api.batch.distribute({deviceId: deviceId, strategyId: strategyId}).then(() => {
+      api.batch.distribute({deviceKey: deviceKey, strategyId: strategyId}).then(() => {
         ElMessage.success('操作成功');
       })
       // 因列表更新数据不是实时更新,需设置定时后在请求列表