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 @@
-
+
diff --git a/nezha-fronted/src/components/page/dashboard/explore/explore.vue b/nezha-fronted/src/components/page/dashboard/explore/explore.vue index ec95ef7b1..ea6318a35 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/explore.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/explore.vue @@ -343,7 +343,7 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c this.$refs['promql-'+promqlIndex][0].setError('') }else{ - console.log(response) + //console.log(response) this.$refs['promql-'+promqlIndex][0].setError(response.error) } }) @@ -425,7 +425,7 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c }, expressionChange: function () { let nowTimeType=this.$refs.pickTime.$refs.timePicker.nowTimeType; - console.log(this.filterTime,nowTimeType); + //console.log(this.filterTime,nowTimeType); this.setSearchTime(nowTimeType.type,nowTimeType.value); if (this.expressions && this.expressions.length >= 1) { this.queryTableData();