diff --git a/src/views/iot/device/components/DeviceAttributeForm.vue b/src/views/iot/device/components/DeviceAttributeForm.vue
index 9d472075..5b016ea5 100644
--- a/src/views/iot/device/components/DeviceAttributeForm.vue
+++ b/src/views/iot/device/components/DeviceAttributeForm.vue
@@ -4,7 +4,7 @@
+ :disabled="formType === 'update'" />
@@ -95,10 +95,6 @@ const formData = ref({
deviceId: undefined as number | undefined
})
-const handleAttributeCodeInput = (val: string) => {
- const sanitized = (val || '').replace(/[^A-Za-z0-9_]/g, '')
- formData.value.attributeCode = sanitized.replace(/^[0-9]+/, '')
-}