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