Commit edff4fb691671607e4e973ae2969153ac0d0d452

Authored by xp.Huang
1 parent b2bff1c5

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

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