Commit 049d4e1f authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 参数值显示评论校验0或1

parent 9b264c14
......@@ -20,7 +20,7 @@ const Template: React.FC<{}> = () => {
const onFinish = (values: any) => {
values.id = query.id;
if(values.id === '5' && !/^([0,1]*)$/.test(values.parameterValue)) {
if(values.id === '5' && !/^([0,1])$/.test(values.parameterValue)) {
return message.error('参数值仅为0或1')
}
postManageParameterManageUpdate(values).then(res => {
......
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