From b106acac912cb1dd577470b80f2c9352dd37da28 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Feb 2019 01:56:07 +0900 Subject: [PATCH] Fix #4340 --- CHANGELOG.md | 4 ++++ .../app/desktop/views/deck/deck.user-column.home.vue | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7503b3372..61037c582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ChangeLog ========= +unreleasded +---------- +* デッキモードにてユーザーのプロフィールを連続で見たとき、アクティビティや画像が前のユーザーのもののまま表示される問題を修正 + 10.88.0 ---------- * アカウントの削除を試験的に実装 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 06604a29b..38a0904ef 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(); }); }, }