Browse Source

点位名称rules优化

master
liujiangyong 2 years ago
parent
commit
142fa053c4
  1. 2
      web/client/src/sections/projectRegime/components/pointModel.js

2
web/client/src/sections/projectRegime/components/pointModel.js

@ -97,7 +97,7 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, q
>
<Form.Item label='点位名称' name="name" style={{}}
initialValue={modelData?.name}
rules={[{ required: true, message: '必填,名称不能包含 \ / : * ? " < > | #', pattern: new RegExp('^[^\\\\^/^|^:^*^?^\"^<^>^#]+$') },]}
rules={[{ required: true, message: '必填,名称不能包含 \\ / : * ? " < > | #', pattern: new RegExp('^[^\\\\/|:*?\"<>#]+$') },]}
>
<Input placeholder="请输入点位名称" allowClear />
</Form.Item>

Loading…
Cancel
Save