diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 394e6b374..ec786b65f 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -1396,6 +1396,7 @@ this.clearChart(); //const addChartBox = document.querySelector('.right-box-add-chart'); //addChartBox.style.cssText = this.oldChartBoxCss; + this.echartModalStore.off('magictypechanged') }, }; diff --git a/nezha-fronted/src/components/charts/richTextEditor.vue b/nezha-fronted/src/components/charts/richTextEditor.vue index 3fa046490..da1ad09a4 100644 --- a/nezha-fronted/src/components/charts/richTextEditor.vue +++ b/nezha-fronted/src/components/charts/richTextEditor.vue @@ -96,6 +96,10 @@ }, mounted() { this.initEditor(); + }, + beforeDestroy(){ + this.quill.off('selection-change'); + this.quill.off('text-change'); } } diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue index 6be2ef277..555dddd9b 100644 --- a/nezha-fronted/src/components/cli/console.vue +++ b/nezha-fronted/src/components/cli/console.vue @@ -351,6 +351,9 @@ export default { }, beforeDestroy () { this.closeSocket(); + this.term.off("selection"); + this.term.off("data") + } } diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue index 83ca34dbf..291ca570a 100644 --- a/nezha-fronted/src/components/common/alert/alertLabel.vue +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -270,6 +270,9 @@ }) } }, + beforeDestroy(){ + + } } diff --git a/nezha-fronted/src/components/common/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/alert/alertMessageTable.vue index c781bbc08..32f473833 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageTable.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageTable.vue @@ -920,6 +920,9 @@ } */ }, + beforeDestroy(){ + + } } diff --git a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue index 6422cb087..1cfbdd6a9 100644 --- a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue @@ -117,6 +117,9 @@ } }); }, + beforeDestroy(){ + + } } diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 8bfc3e8da..dbdb21b17 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -105,6 +105,9 @@ } }, 500); } + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index 33725232a..14dc3511f 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -686,6 +686,9 @@ this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList") ? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")) : this.tableTitle; + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue index 51c9ef2d3..d4e6a7737 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/cabinetTab.vue @@ -278,6 +278,9 @@ }); } }); + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue index 626693d3d..3c92b412c 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue @@ -685,6 +685,9 @@ }, 300); //}); + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue index 0af3a670f..c86e01187 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTab.vue @@ -498,6 +498,9 @@ }, 500); } } + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/popBox/cabinetConfig.vue b/nezha-fronted/src/components/common/popBox/cabinetConfig.vue index 8885bb8d0..a33405915 100644 --- a/nezha-fronted/src/components/common/popBox/cabinetConfig.vue +++ b/nezha-fronted/src/components/common/popBox/cabinetConfig.vue @@ -212,6 +212,9 @@ export default { this.popBox.isEdit=n; } } + }, + beforeDestroy(){ + } } diff --git a/nezha-fronted/src/components/common/popBox/selectArea.vue b/nezha-fronted/src/components/common/popBox/selectArea.vue index 81d6923fe..4de1a1e7c 100644 --- a/nezha-fronted/src/components/common/popBox/selectArea.vue +++ b/nezha-fronted/src/components/common/popBox/selectArea.vue @@ -70,6 +70,9 @@ } } }, + beforeDestroy(){ + + } } diff --git a/nezha-fronted/src/components/common/popBox/selectWalk.vue b/nezha-fronted/src/components/common/popBox/selectWalk.vue index 5abc17a9a..6b3aab6da 100644 --- a/nezha-fronted/src/components/common/popBox/selectWalk.vue +++ b/nezha-fronted/src/components/common/popBox/selectWalk.vue @@ -120,6 +120,9 @@ return true; } }, + beforeDestroy(){ + + } } diff --git a/nezha-fronted/src/components/common/project/addNode.vue b/nezha-fronted/src/components/common/project/addNode.vue index 03f670bef..064eaaa03 100644 --- a/nezha-fronted/src/components/common/project/addNode.vue +++ b/nezha-fronted/src/components/common/project/addNode.vue @@ -399,8 +399,11 @@ }) }, }, + beforeDestroy(){ - } + } + + }