diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-22 01:56:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-22 01:56:07 +0900 |
| commit | b106acac912cb1dd577470b80f2c9352dd37da28 (patch) | |
| tree | f8e2bdd80a98a47e0bc74d079997fb88a40e7673 /src | |
| parent | Update note-detail.vue (#4342) (diff) | |
| download | sharkey-b106acac912cb1dd577470b80f2c9352dd37da28.tar.gz sharkey-b106acac912cb1dd577470b80f2c9352dd37da28.tar.bz2 sharkey-b106acac912cb1dd577470b80f2c9352dd37da28.zip | |
Fix #4340
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/deck/deck.user-column.home.vue | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/deck/deck.user-column.home.vue b/src/client/app/desktop/views/deck/deck.user-column.home.vue index 06604a29bc..38a0904ef5 100644 --- a/src/client/app/desktop/views/deck/deck.user-column.home.vue +++ b/src/client/app/desktop/views/deck/deck.user-column.home.vue @@ -61,12 +61,14 @@ export default Vue.extend({ return { withFiles: false, images: [], - makePromise: null + makePromise: null, + chart: null as ApexCharts }; }, watch: { user() { + this.fetch(); this.genPromiseMaker(); } }, @@ -155,7 +157,9 @@ export default Vue.extend({ ]); } - const chart = new ApexCharts(this.$refs.chart, { + if (this.chart) this.chart.destroy(); + + this.chart = new ApexCharts(this.$refs.chart, { chart: { type: 'bar', stacked: true, @@ -201,7 +205,7 @@ export default Vue.extend({ } }); - chart.render(); + this.chart.render(); }); }, } |