fix: kpi原始指标实时数据推送方向修正,重绘渲染问题修正
This commit is contained in:
@@ -1247,7 +1247,7 @@ function wsMessage(res: Record<string, any>) {
|
||||
}
|
||||
|
||||
// 更新图表数据
|
||||
chartData.value.unshift(newData);
|
||||
chartData.value.push(newData);
|
||||
if (chartData.value.length > 100) {
|
||||
chartData.value.pop();
|
||||
}
|
||||
@@ -1329,9 +1329,6 @@ function wsMessage(res: Record<string, any>) {
|
||||
data: chartData.value.map(item => parseDateToStr(+item.date)),
|
||||
},
|
||||
series: series,
|
||||
},
|
||||
{
|
||||
replaceMerge: ['xAxis', 'series'],
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user