fix: echarts辅助线删除后存在缓存

This commit is contained in:
junjun 2022-06-17 20:08:12 +08:00
parent 4cb4b36aae
commit d9e967a0c3

View File

@ -216,12 +216,13 @@ export function seniorCfg(chart_option, chart) {
}
}
}
// begin mark line settings
chart_option.series[0].markLine = {
symbol: 'none',
data: []
}
if (senior.assistLine && senior.assistLine.length > 0) {
if (chart_option.series && chart_option.series.length > 0) {
chart_option.series[0].markLine = {
symbol: 'none',
data: []
}
const customStyle = JSON.parse(chart.customStyle)
let xAxis, yAxis
if (customStyle.xAxis) {