Commit b0ae23c9b163b6e6f09eb8168a3a8cff9a6ef26d
Merge branch 'fix/DEFECT-2089' into 'main_dev'
fix: 当设备类型为TCP设备类型时,输入hex或者dec时,仍然提示地址码范围 See merge request yunteng/thingskit-front!1345
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -202,7 +202,7 @@ export const step1Schemas: FormSchema[] = [ | @@ -202,7 +202,7 @@ export const step1Schemas: FormSchema[] = [ | ||
202 | values?.transportType === TransportTypeEnum.TCP && | 202 | values?.transportType === TransportTypeEnum.TCP && |
203 | values?.tcpDeviceProtocol === TCPProtocolTypeEnum.MODBUS_RTU, | 203 | values?.tcpDeviceProtocol === TCPProtocolTypeEnum.MODBUS_RTU, |
204 | message: '地址码范围为00~FF', | 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 | }, |