diff --git a/hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue b/hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue index c765681..c111a87 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/energyAlarm/look.vue @@ -111,7 +111,7 @@ } }); }; - const getChatr = (data) => { + const getChatr = (data: any) => { if (chartInstance) { chartInstance.dispose(); } @@ -215,7 +215,7 @@ axisLabel: { show: true, // 显示 formatter: function (value: any) { - return value + ' ' + data.unit; // 在刻度值后加上单位 + return value + data.unit; // 在刻度值后加上单位 }, }, },