Showing
1 changed file
with
3 additions
and
0 deletions
@@ -35,6 +35,9 @@ export const getSendValues = async (option, getDesign, checked) => { | @@ -35,6 +35,9 @@ export const getSendValues = async (option, getDesign, checked) => { | ||
35 | commandType == CommandTypeEnum.SERVICE.toString() | 35 | commandType == CommandTypeEnum.SERVICE.toString() |
36 | ) { | 36 | ) { |
37 | values.customCommand.command = checked ? openCommand : closeCommand; | 37 | values.customCommand.command = checked ? openCommand : closeCommand; |
38 | + values.customCommand.command = values.customCommand.command | ||
39 | + .replaceAll(/\s/g, '') | ||
40 | + .toUpperCase(); | ||
38 | } | 41 | } |
39 | if ( | 42 | if ( |
40 | //判断命令下发类型是不是属性 且是modbus | 43 | //判断命令下发类型是不是属性 且是modbus |