From 90b9e934e2373bae4281c829bbe904fa118fcea6 Mon Sep 17 00:00:00 2001 From: lzh Date: Mon, 26 Jan 2026 16:15:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9deviceName=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/iot/device/device/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/iot/device/device/data.ts b/apps/web-antd/src/views/iot/device/device/data.ts index f9b344d84..233814210 100644 --- a/apps/web-antd/src/views/iot/device/device/data.ts +++ b/apps/web-antd/src/views/iot/device/device/data.ts @@ -52,7 +52,7 @@ export function useFormSchema(): VbenFormSchema[] { .min(2, '设备标识长度不能少于 2 个字符') .max(12, '设备标识长度不能超过 12 个字符') .regex( - /^[\w.\-:@]{4,32}$/, + /^[\w.\-:@]{2,12}$/, '支持英文字母、数字、下划线(_)、中划线(-)、点号(.)、半角冒号(:)和特殊字符@', ), },