From 6ad96288ded6e45761c0593bf0a197e6390c1a17 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 01:54:10 +0900 Subject: [PATCH] wip --- src/client/app/common/views/components/avatar.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/client/app/common/views/components/avatar.vue b/src/client/app/common/views/components/avatar.vue index a2b0fc6bd..ca09af87d 100644 --- a/src/client/app/common/views/components/avatar.vue +++ b/src/client/app/common/views/components/avatar.vue @@ -58,6 +58,9 @@ export default Vue.extend({ }; } }, + mounted() { + this.$el.style.color = `rgb(${this.user.avatarColor.slice(0, 3).join(',')})`; + }, methods: { onClick(e) { this.$emit('click', e); @@ -67,8 +70,7 @@ export default Vue.extend({