fix: name validation

This commit is contained in:
jialin
2026-05-15 16:22:07 +08:00
committed by jialin
parent 3f9852c932
commit 5d75cfdfc5
13 changed files with 78 additions and 58 deletions
@@ -1,3 +1,4 @@
import { validateLabelNameRegxFor63 } from '@/config';
import {
Input as CInput,
InputNumber,
@@ -29,6 +30,10 @@ const Basic = ({ open }: { open: boolean }) => {
{
required: true,
message: getRuleMessage('input', 'common.table.name')
},
{
pattern: validateLabelNameRegxFor63,
message: intl.formatMessage({ id: 'gpuservice.form.rule.name' })
}
]}
>