fix:修复图表刷新后,legend依然为灰色状态的问题

This commit is contained in:
wangwenrui
2020-10-12 18:26:27 +08:00
parent 76f47b76be
commit 0cccb4de7f

View File

@@ -763,6 +763,7 @@
if (chartSite === 'local') { // 本地显示
if(legend){
this.legendList = [];
this.isGrey=[];
legend.forEach((item, i) => {
const legend = {
name:item.name,
@@ -880,6 +881,7 @@
// eslint-disable-next-line
if(legend){
this.screenLegendList = [];
this.isGreyScreen=[]
legend.forEach((item, i) => {
const legend = {
name:item.name,