mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add logo as default avatar background image
This commit is contained in:
parent
df519c9828
commit
068f6c2b49
@ -35,7 +35,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
backgroundImage() {
|
backgroundImage() {
|
||||||
const { avatar } = this.user || {}
|
const avatar =
|
||||||
|
this.user.avatar ||
|
||||||
|
'https://human-connection.org/wp-content/uploads/2019/03/human-connection-logo.svg'
|
||||||
const userAvatar = avatar.startsWith('/') ? avatar.replace('/', '/api/') : avatar
|
const userAvatar = avatar.startsWith('/') ? avatar.replace('/', '/api/') : avatar
|
||||||
return {
|
return {
|
||||||
backgroundImage: `url(${userAvatar})`,
|
backgroundImage: `url(${userAvatar})`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user