Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -44,6 +44,8 @@ export function useGetModbusCommand() { | @@ -44,6 +44,8 @@ export function useGetModbusCommand() { | ||
| 44 | createMessage.warning(`属性下发值不能超过${REGISTER_MAX_VALUE},缩放因子是${zoomFactor}`) | 44 | createMessage.warning(`属性下发值不能超过${REGISTER_MAX_VALUE},缩放因子是${zoomFactor}`) |
| 45 | return | 45 | return |
| 46 | } | 46 | } |
| 47 | + | ||
| 48 | + params.registerValues = [newValue] | ||
| 47 | } | 49 | } |
| 48 | else if (actionType === TCPObjectModelActionTypeEnum.DOUBLE) { | 50 | else if (actionType === TCPObjectModelActionTypeEnum.DOUBLE) { |
| 49 | const regex = /^-?\d+(\.\d{0,2})?$/ | 51 | const regex = /^-?\d+(\.\d{0,2})?$/ |