Добавил подтягивание аватара юзера
This commit is contained in:
@@ -23,9 +23,9 @@
|
||||
button.header-buttons.flex.justify-center.items-center.mr-8.p-0
|
||||
.icon-bell.text-xxl
|
||||
.flex.justify-centflexer.items-center.relative
|
||||
//- base-avatar.mr-2(:size="36", :color="userData.color", v-if="!userData.photo") {{changeName}}
|
||||
//- base-avatar.mr-2(:size="32", v-else)
|
||||
//- img.h-full.object-cover(:src="url + userData.photo", alt="Avatar")
|
||||
base-avatar.mr-2(:size="36", :color="userData?.color", v-if="!userData?.photo") {{changeName}}
|
||||
base-avatar.mr-2(:size="32", v-else)
|
||||
img.h-full.object-cover(:src="url + userData?.photo", alt="Avatar")
|
||||
button.header-buttons(@click="openPopup")
|
||||
.icon-down-arrow.text-xxs.flex.justify-center.items-center.p-0
|
||||
base-popup.right-2.top-10(
|
||||
@@ -74,9 +74,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
changeName() {
|
||||
return `${this.userData.last_name || ""} ${
|
||||
this.userData.first_name || ""
|
||||
} ${this.userData.patronymic || ""}`;
|
||||
return `${this.userData?.last_name || ""} ${
|
||||
this.userData?.first_name || ""
|
||||
} ${this.userData?.patronymic || ""}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user