Commit 8dfc12658c6f68a48dbf23cd6761578e9415dc2d
1 parent
d43a6e0b
fix: 当设备类型为TCP设备类型时,输入hex或者dec时,仍然提示地址码范围
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | ... | @@ -202,7 +202,7 @@ export const step1Schemas: FormSchema[] = [ |
| 202 | 202 | values?.transportType === TransportTypeEnum.TCP && |
| 203 | 203 | values?.tcpDeviceProtocol === TCPProtocolTypeEnum.MODBUS_RTU, |
| 204 | 204 | message: '地址码范围为00~FF', |
| 205 | - pattern: /^[0-9A-Fa-f]{2}$/, | |
| 205 | + pattern: /^[0-9A-Fa-f]{1,2}$/, | |
| 206 | 206 | }, |
| 207 | 207 | ]; |
| 208 | 208 | }, | ... | ... |