modified: serv_nginx/Makefile
modified: serv_nginx/bbvue/src/views/Profile.vue avatar Url
This commit is contained in:
+4
-1
@@ -30,6 +30,9 @@ build_nginx:
|
||||
run_nginx: stop_nginx build_nginx
|
||||
docker compose up nginx -d
|
||||
|
||||
bbb:
|
||||
npm_clean:
|
||||
npm cache clean --force
|
||||
|
||||
bbb: git npm_clean
|
||||
cd bbvue && npm run build
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<!-- Секция аватара -->
|
||||
<div class="avatar-section">
|
||||
<div class="avatar-preview">
|
||||
<img v-if="user.avatar && !avatarLoadError" :src="user.avatar"
|
||||
<img v-if="user.avatar && !avatarLoadError" :src="avatarUrl"
|
||||
:alt="`Аватар ${user.firstName} ${user.lastName}`" class="avatar-image" @error="handleAvatarError">
|
||||
<div v-else class="avatar-placeholder">
|
||||
👤
|
||||
@@ -277,6 +277,11 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async onAvatarUpdated() {
|
||||
this.avatarLoadError = false;
|
||||
await this.authStore.fetchProfile();
|
||||
},
|
||||
|
||||
handleAvatarError() {
|
||||
console.error('Ошибка загрузки аватара:', this.avatarUrl);
|
||||
this.avatarLoadError = true;
|
||||
|
||||
Reference in New Issue
Block a user