无人机管理后台前端(已迁走)
chenyao
2025-08-29 e434bf1fdb87848cd7ae802e2dca689506a3a8c6
src/views/device/components/DeviceSettingBox.vue
@@ -313,6 +313,7 @@
<script setup>
import { defineProps, ref, watch } from 'vue';
import { ELocalStorageKey } from '@/types'
import { cloneDeep } from 'lodash';
import { initDeviceSetting, initDeviceSettingFormModel, DeviceSettingKeyEnum } from '@/types/device-setting';
import {
@@ -355,8 +356,8 @@
async function onConfirm(settingKey) {
  deviceSetting.value[settingKey].popConfirm.loading = true;
  const body = genDevicePropsBySettingKey(settingKey, deviceSettingFormModel.value);
  console.log(body, '顶顶顶顶顶')
  await setDeviceProps(props.sn, body);
  localStorage.setItem(ELocalStorageKey.WorkspaceId, props.deviceInfo.workspace_id)
  await setDeviceProps(props.sn, body, props.deviceInfo.workspace_id);
  deviceSetting.value[settingKey].popConfirm.loading = false;
  deviceSetting.value[settingKey].popConfirm.visible = false;
}