Commit e0630691d47ec3bcf6fa3cadfc2320a216cdc0a3
Merge branch 'main_dev' into 'main'
perf: 仪表盘组件绑定无数据上报的物模型属性时为NaN See merge request yunteng/thingskit-scada!226
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -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: { | ... | ... |