fix:处理因为改变addEventLister方法造成的报错问题

This commit is contained in:
zhangyu
2020-11-20 18:03:57 +08:00
parent 74d8f02a73
commit 4f2d0b3e54
6 changed files with 21 additions and 12 deletions

View File

@@ -1397,9 +1397,11 @@
//const addChartBox = document.querySelector('.right-box-add-chart');
//addChartBox.style.cssText = this.oldChartBoxCss;
try {
this.echartModalStore.off('magictypechanged');
if(this.echartModalStore){
this.echartModalStore.off('magictypechanged');
}
} finally {}
this.$refs.screenLegendArea._ps_ && this.$refs.screenLegendArea._ps_.destroy();
this.$refs.screenLegendArea && this.$refs.screenLegendArea._ps_.destroy();
},
};