Commit a90bd316bbec3cbaf7570e343bce7049057cca14

Authored by xp.Huang
2 parents a72a1ff3 d3595d5b

Merge branch 'ww-dev' into 'main'

fix: 修复数据流转Kafka属性保存类型错误

See merge request yunteng/thingskit-front!519
... ... @@ -269,7 +269,6 @@
269 269 const type = Reflect.get(record, 'type');
270 270 const configuration = Reflect.get(record, 'configuration');
271 271 const clientProperties = Reflect.get(configuration, 'clientProperties');
272   - console.log(clientProperties);
273 272 !clientProperties && (record.configuration.clientProperties = {});
274 273
275 274 if (
... ... @@ -281,7 +280,9 @@
281 280 }
282 281
283 282 if (type === 'org.thingsboard.rule.engine.kafka.TbKafkaNode') {
  283 + const otherProperties = Reflect.get(configuration, 'otherProperties');
284 284 configuration.kafkaHeadersCharset = 'UTF-8';
  285 + !otherProperties && (record.configuration.otherProperties = {});
285 286 }
286 287
287 288 if (type === 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode') {
... ...