This commit is contained in:
syuilo
2019-04-08 19:56:42 +09:00
parent 3a26acbdb2
commit fab0cc51b3
13 changed files with 17 additions and 24 deletions

View File

@ -88,7 +88,7 @@ export default Vue.extend({
if (this.user == null) return {};
if (this.user.bannerUrl == null) return {};
return {
backgroundColor: this.user.bannerColor && this.user.bannerColor.length == 3 ? `rgb(${ this.user.bannerColor.join(',') })` : null,
backgroundColor: this.user.bannerColor,
backgroundImage: `url(${ this.user.bannerUrl })`
};
},