diff --git a/src/client/app/admin/views/charts.vue b/src/client/app/admin/views/charts.vue index f70e7c207e..13e8b3671e 100644 --- a/src/client/app/admin/views/charts.vue +++ b/src/client/app/admin/views/charts.vue @@ -140,6 +140,10 @@ export default Vue.extend({ this.render(); }, + beforeDestroy() { + this.chartInstance.destroy(); + }, + methods: { setSrc(src) { this.src = src; diff --git a/src/client/app/admin/views/cpu-memory.vue b/src/client/app/admin/views/cpu-memory.vue index 3200c660e6..a111dfe32d 100644 --- a/src/client/app/admin/views/cpu-memory.vue +++ b/src/client/app/admin/views/cpu-memory.vue @@ -117,6 +117,9 @@ export default Vue.extend({ beforeDestroy() { this.connection.off('stats', this.onStats); this.connection.off('statsLog', this.onStatsLog); + + this.cpuChart.destroy(); + this.memChart.destroy(); }, methods: {