Commit 07e51d19 authored by 涂伟's avatar 涂伟

fix: 'GCK平台地址校验去掉'

parent 7e347ffc
Pipeline #87261 passed with stages
...@@ -94,16 +94,16 @@ const MessageConfig = () => { ...@@ -94,16 +94,16 @@ const MessageConfig = () => {
<Form.Item <Form.Item
label="GCK平台地址" label="GCK平台地址"
name="messageAddress" name="messageAddress"
rules={[ // rules={[
{ // {
required: true, // required: true,
pattern: new RegExp( // pattern: new RegExp(
/^(([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])(:\d*)$/, // /^(([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])(:\d*)$/,
'g', // 'g',
), // ),
message: '请输入正确的IP例如:192.168.12.231:8231', // message: '请输入正确的IP例如:192.168.12.231:8231',
}, // },
]} // ]}
> >
<Input <Input
style={{ width: '300px', marginLeft: '15px' }} style={{ width: '300px', marginLeft: '15px' }}
......
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