From e434bf1fdb87848cd7ae802e2dca689506a3a8c6 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 29 Aug 2025 18:30:56 +0800
Subject: [PATCH] feat:更新设备管理

---
 src/views/device/components/DeviceSettingBox.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/device/components/DeviceSettingBox.vue b/src/views/device/components/DeviceSettingBox.vue
index 66377f1..b292ccc 100644
--- a/src/views/device/components/DeviceSettingBox.vue
+++ b/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;
 }

--
Gitblit v1.9.3