Commit d79e6179 authored by tianfen's avatar tianfen

pref: 产品配置名称加正则

parent 0086dccc
Pipeline #22426 skipped with stages
......@@ -50,7 +50,8 @@ const EditForm = props => {
rules={[
{
required: true,
message: '请输入产品名称',
pattern: new RegExp(/^[a-z0-9A-Z]+$/),
message: '产品名称必须是英文或者数字',
},
]}
>
......
......@@ -64,7 +64,8 @@ const AddForm = props => {
rules={[
{
required: true,
message: '请输入产品名称',
pattern: new RegExp(/^[a-z0-9A-Z]+$/),
message: '产品名称必须是英文或者数字',
},
]}
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment