解决控制台警告

This commit is contained in:
lai
2024-01-26 15:53:38 +08:00
parent 9963ec9965
commit 231d0381d1

View File

@@ -7,7 +7,6 @@ import { mainGet } from '@/api/faultManage/actAlarm';
import * as echarts from 'echarts/core'; import * as echarts from 'echarts/core';
import { import {
TitleComponent, TitleComponent,
TitleComponentOption,
TooltipComponent, TooltipComponent,
TooltipComponentOption, TooltipComponentOption,
GridComponent, GridComponent,
@@ -93,7 +92,6 @@ for (var i = 0; i < 5; i++) {
}, },
}, },
itemStyle: { itemStyle: {
normal: {
color: color[i], color: color[i],
lineStyle: { lineStyle: {
width: 1, width: 1,
@@ -107,7 +105,6 @@ for (var i = 0; i < 5; i++) {
}, },
opacity: 0.5, opacity: 0.5,
}, },
},
data: data[i], data: data[i],
}); });
} }
@@ -207,24 +204,6 @@ function fnDesign(container: HTMLElement | undefined, option: EChartsOption) {
onMounted(() => { onMounted(() => {
fnDesign(alarmDayLine.value, optionData); fnDesign(alarmDayLine.value, optionData);
// setInterval(() => {
// neResourcesChart.value.setOption({
// legend: {
// selected: {
// '上行': false,
// '下行': false
// }
// }
// })
// neResourcesChart.value.setOption({
// legend: {
// selected: {
// '上行': true,
// '下行': true
// }
// }
// })
// }, 10000)
}); });
</script> </script>