Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -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) | ... | ... |