This commit is contained in:
syuilo 2018-09-29 00:01:11 +09:00
parent 1fa4d0d3f8
commit 6a82e94c54
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
15 changed files with 287 additions and 31 deletions

View file

@ -59,7 +59,9 @@ export default Vue.extend({
}
},
mounted() {
this.$el.style.color = `rgb(${this.user.avatarColor.slice(0, 3).join(',')})`;
if (this.user.avatarColor) {
this.$el.style.color = `rgb(${this.user.avatarColor.slice(0, 3).join(',')})`;
}
},
methods: {
onClick(e) {