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) {
} }
} }
} }
if (senior.assistLine && senior.assistLine.length > 0) { // begin mark line settings
if (chart_option.series && chart_option.series.length > 0) {
chart_option.series[0].markLine = { chart_option.series[0].markLine = {
symbol: 'none', symbol: 'none',
data: [] data: []
} }
if (senior.assistLine && senior.assistLine.length > 0) {
if (chart_option.series && chart_option.series.length > 0) {
const customStyle = JSON.parse(chart.customStyle) const customStyle = JSON.parse(chart.customStyle)
let xAxis, yAxis let xAxis, yAxis
if (customStyle.xAxis) { if (customStyle.xAxis) {