From 68970fe136f1280ce43e90eeeb3227f1c42c900d Mon Sep 17 00:00:00 2001 From: hwj Date: Thu, 23 Jul 2026 14:40:57 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E7=89=A9=E8=81=94=E8=AE=BE?= =?UTF-8?q?=E5=A4=87-=E8=AE=BE=E5=A4=87=E7=82=B9=E4=BD=8D-=E7=82=B9?= =?UTF-8?q?=E4=BD=8D=E7=BC=96=E7=A0=81=E6=AD=A3=E5=88=99=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/components/DeviceAttributeForm.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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]+/, '') -}