From 101c5952c442349e11e10a9bbad41f1b28951301 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 28 Sep 2022 15:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20echarts=E8=BE=85?= =?UTF-8?q?=E5=8A=A9=E7=BA=BF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/common/common.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/chart/chart/common/common.js b/frontend/src/views/chart/chart/common/common.js index 321c238bc0..5bd5f738e7 100644 --- a/frontend/src/views/chart/chart/common/common.js +++ b/frontend/src/views/chart/chart/common/common.js @@ -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) {