Commit 971ce85697147ef9aa43a8f003b2269e377b7739

Authored by loveumiko
1 parent 4da4ac9e

fix: 修复设备选择是网关子时命令下发方式没有服务调用

... ... @@ -130,8 +130,11 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => {
130 130 return
131 131 }
132 132
133   - if (transportType !== TransportTypeEnum.TCP && deviceType === DeviceTypeEnum.SENSOR)
  133 + if (transportType !== TransportTypeEnum.TCP && deviceType === DeviceTypeEnum.SENSOR) {
  134 + // 判断不是TCP但是是网关子
134 135 options.push(serviceOption)
  136 + return
  137 + }
135 138
136 139 if (deviceType !== DeviceTypeEnum.SENSOR)
137 140 options.push(serviceOption)
... ...