Commit 21f01061 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改营销成团时间的bug

parent 7dbdad2c
......@@ -566,7 +566,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={24}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^(0?\.[1-9]|1\d|2[0-4])(\.\d{1,1})?$/;
const pattern = /^([1-9]|1\d|2[0-4])$/
if (!value) {
return Promise.reject(new Error('请输入成团时间'));
}
......
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