fix(视图): echarts辅助线报错

This commit is contained in:
junjun 2022-09-28 15:26:46 +08:00
parent 81beaaccbd
commit 101c5952c4

View File

@ -274,9 +274,11 @@ export function seniorCfg(chart_option, chart) {
}
}
// begin mark line settings
chart_option.series[0].markLine = {
symbol: 'none',
data: []
if (chart_option.series && chart_option.series.length > 0) {
chart_option.series[0].markLine = {
symbol: 'none',
data: []
}
}
if (senior.assistLine && senior.assistLine.length > 0) {
if (chart_option.series && chart_option.series.length > 0) {