diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 66d907945..0ce2f910e 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -1396,8 +1396,10 @@ this.clearChart(); //const addChartBox = document.querySelector('.right-box-add-chart'); //addChartBox.style.cssText = this.oldChartBoxCss; - this.echartModalStore.off('magictypechanged'); - this.$refs.screenLegendArea._ps_.destroy(); + try { + this.echartModalStore.off('magictypechanged'); + } finally {} + this.$refs.screenLegendArea._ps_ && this.$refs.screenLegendArea._ps_.destroy(); }, }; diff --git a/nezha-fronted/src/components/page/dashboard/explore/editor.vue b/nezha-fronted/src/components/page/dashboard/explore/editor.vue index 865763e02..5144b3efe 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/editor.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/editor.vue @@ -2,7 +2,7 @@