diff --git a/web/src/view/dashboard/dashbordCharts/echartsLine.vue b/web/src/view/dashboard/dashbordCharts/echartsLine.vue index c9a3ecfc..6e2f5055 100644 --- a/web/src/view/dashboard/dashbordCharts/echartsLine.vue +++ b/web/src/view/dashboard/dashbordCharts/echartsLine.vue @@ -51,7 +51,7 @@ export default { this.initChart() }) }, - beforeDestroy() { + beforeUnmount() { if (!this.chart) { return } diff --git a/web/src/view/layout/aside/historyComponent/history.vue b/web/src/view/layout/aside/historyComponent/history.vue index 6dfc2dcc..f1b59df8 100644 --- a/web/src/view/layout/aside/historyComponent/history.vue +++ b/web/src/view/layout/aside/historyComponent/history.vue @@ -120,7 +120,7 @@ export default { } this.setTab(this.$route) }, - beforeDestroy() { + beforeUnmount() { emitter.off('collapse') emitter.off('mobile') }, diff --git a/web/src/view/layout/aside/index.vue b/web/src/view/layout/aside/index.vue index bdc451f5..a24fb71e 100644 --- a/web/src/view/layout/aside/index.vue +++ b/web/src/view/layout/aside/index.vue @@ -58,7 +58,7 @@ export default { this.isCollapse = item }) }, - beforeDestroy() { + beforeUnmount() { emitter.off('collapse') }, methods: { diff --git a/web/src/view/layout/screenfull/index.vue b/web/src/view/layout/screenfull/index.vue index e422ee5a..73176486 100644 --- a/web/src/view/layout/screenfull/index.vue +++ b/web/src/view/layout/screenfull/index.vue @@ -90,7 +90,7 @@ export default { screenfull.on('change', this.changeFullShow) } }, - destroyed() { + unmounted() { screenfull.off('change', this.changeFullShow) }, methods: { diff --git a/web/src/view/system/state.vue b/web/src/view/system/state.vue index a7c08bf4..466f13b7 100644 --- a/web/src/view/system/state.vue +++ b/web/src/view/system/state.vue @@ -159,7 +159,7 @@ export default { this.reload() }, 1000 * 10) }, - beforeDestroy() { + beforeUnmount() { clearInterval(this.timer) this.timer = null },