| | |
| | | deviceSetting.value[settingKey].popConfirm.visible = false; |
| | | } |
| | | |
| | | async function onConfirm(settingKey) { |
| | | async function onConfirm(settingKey,) { |
| | | deviceSetting.value[settingKey].popConfirm.loading = true; |
| | | const body = genDevicePropsBySettingKey(settingKey, deviceSettingFormModel.value); |
| | | localStorage.setItem(ELocalStorageKey.WorkspaceId, props.deviceInfo.workspace_id) |
| | | await setDeviceProps(props.sn, body); |
| | | await setDeviceProps(props.sn, props.deviceInfo.workspace_id, body); |
| | | deviceSetting.value[settingKey].popConfirm.loading = false; |
| | | deviceSetting.value[settingKey].popConfirm.visible = false; |
| | | } |