From 02d848bf39005e83882a87f8bc322d8499b92fbc Mon Sep 17 00:00:00 2001 From: whychdw <49690745@qq.com> Date: 星期六, 29 八月 2020 10:05:44 +0800 Subject: [PATCH] 提交修改 --- src/global/ChartManage.js | 20 +------------------- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/src/global/ChartManage.js b/src/global/ChartManage.js index cb60da0..de0af91 100644 --- a/src/global/ChartManage.js +++ b/src/global/ChartManage.js @@ -44,25 +44,7 @@ return chart; } }); - - let endChart = groups[groups.length-1]; - // 鏈幏鍙栫殑chart瀵硅薄鍒楄〃 - if(groups.length == 0 || !endChart) { - return; - } - let dataZoom = endChart.getOption().dataZoom[0]; - groups.forEach(chart=> { - chart.dispatchAction({ - type: 'dataZoom', - batch: [ - { - // 绗竴涓� dataZoom 缁勪欢 - start: dataZoom.start, - end: dataZoom.end, - } - ] - }); - }); + // 娓呯┖鍒嗙粍 this.disconnect(); this.group = ECharts.connect(groups); -- Gitblit v1.9.1