Commit e0630691d47ec3bcf6fa3cadfc2320a216cdc0a3

Authored by xp.Huang
2 parents b2bff1c5 edff4fb6

Merge branch 'main_dev' into 'main'

perf: 仪表盘组件绑定无数据上报的物模型属性时为NaN

See merge request yunteng/thingskit-scada!226
... ... @@ -44,7 +44,7 @@ const onReceiveDataSourceMessage = (commandSource: CommandSource, message: Subsc
44 44 const { latestValue } = useLatestMessageValue(message.data, (attr as string))
45 45 unref(chartInstance)?.setOption({
46 46 series: [{
47   - data: [{ value: latestValue }],
  47 + data: [{ value: latestValue ?? 0 }],
48 48
49 49 }],
50 50 title: {
... ...