Commit eaa1d34d41a8f1303b612362e15eda8fb63589a5

Authored by ww
1 parent 995a69bb

fix: 命令下发时过滤命令中的空白字符

... ... @@ -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
... ...