diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 0ce2f910e..e9c0436af 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -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(); }, }; diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue index 291ca570a..35697aae3 100644 --- a/nezha-fronted/src/components/common/alert/alertLabel.vue +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -263,7 +263,6 @@ if(res.msg==='success'){ this.loading=false; this.alertLabelData=res.data.list[0]; - console.log(this.alertLabelData) } else{ this.$message.error(res.msg); } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index bbc631c5a..527bd40ed 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -685,7 +685,7 @@ this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList") ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")) : this.tableTitle; - this.$refs['alertMessageTable'].bottomBox.mainResizeShow=false; + // this.$refs['alertMessageTable'].bottomBox.mainResizeShow=false; }, beforeDestroy(){ diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 2bce3456b..8216ed1f6 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -503,9 +503,11 @@ } }, beforeDestroy(){ - document.querySelector("#tableList").removeEventListener("mouseenter", this.tableListEnter); - document.querySelector("#tableList").removeEventListener("mouseleave", this.tableListLaeve); - document.querySelector("body>.el-dropdown-menu").removeEventListener("ps-y-reach-end", this.psYReachEnd); + if(document.querySelector("#tableList")){ + document.querySelector("#tableList").removeEventListener("mouseenter", this.tableListEnter); + document.querySelector("#tableList").removeEventListener("mouseleave", this.tableListLaeve); + document.querySelector("body>.el-dropdown-menu").removeEventListener("ps-y-reach-end", this.psYReachEnd); + } } } diff --git a/nezha-fronted/src/components/common/project/visNetwork.vue b/nezha-fronted/src/components/common/project/visNetwork.vue index f40189ee1..46f1ff98d 100644 --- a/nezha-fronted/src/components/common/project/visNetwork.vue +++ b/nezha-fronted/src/components/common/project/visNetwork.vue @@ -207,7 +207,9 @@ this.edgesArray=[]; setTimeout(()=>{ this.topologyLoading=false; - this.$refs['topology'].setData(); + if(this.$refs['topology']){ + this.$refs['topology'].setData(); + } },100) } if(res.data.topo){ @@ -261,7 +263,9 @@ this.edgesArray=[...this.edgesArrayOther]; setTimeout(()=>{ this.topologyLoading=false; - this.$refs['topology'].setData(); + if(this.$refs['topology']){ + this.$refs['topology'].setData(); + } },500) }) // } @@ -276,7 +280,9 @@ this.nodesArray=[...this.nodesArrayOther]; this.edgesArray=[...this.edgesArrayOther]; this.topologyLoading=false; - this.$refs['topology'].setData(); + if(this.$refs['topology']){ + this.$refs['topology'].setData(); + } }) }); return arr diff --git a/nezha-fronted/src/components/page/config/model.vue b/nezha-fronted/src/components/page/config/model.vue index e33ec1650..adf5e00df 100644 --- a/nezha-fronted/src/components/page/config/model.vue +++ b/nezha-fronted/src/components/page/config/model.vue @@ -339,10 +339,10 @@ self.tools.showTopBtn = false; } }, - plmouseenter(self){ + plmouseenter(el,self){ self.tools.tableHover = true; }, - plmouseleave(self){ + plmouseleave(el,self){ self.tools.tableHover = false; } },