Showing
1 changed file
with
4 additions
and
1 deletions
@@ -130,8 +130,11 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => { | @@ -130,8 +130,11 @@ export const getFormSchemas = (event: EventTypeEnum): FormSchema[] => { | ||
130 | return | 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 | options.push(serviceOption) | 135 | options.push(serviceOption) |
136 | + return | ||
137 | + } | ||
135 | 138 | ||
136 | if (deviceType !== DeviceTypeEnum.SENSOR) | 139 | if (deviceType !== DeviceTypeEnum.SENSOR) |
137 | options.push(serviceOption) | 140 | options.push(serviceOption) |