[Client] Fix bug

This commit is contained in:
syuilo 2018-11-09 18:38:10 +09:00
parent 372db65604
commit ac8817ef34
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 7 additions and 0 deletions

View file

@ -140,6 +140,10 @@ export default Vue.extend({
this.render(); this.render();
}, },
beforeDestroy() {
this.chartInstance.destroy();
},
methods: { methods: {
setSrc(src) { setSrc(src) {
this.src = src; this.src = src;

View file

@ -117,6 +117,9 @@ export default Vue.extend({
beforeDestroy() { beforeDestroy() {
this.connection.off('stats', this.onStats); this.connection.off('stats', this.onStats);
this.connection.off('statsLog', this.onStatsLog); this.connection.off('statsLog', this.onStatsLog);
this.cpuChart.destroy();
this.memChart.destroy();
}, },
methods: { methods: {