modified: begushiybashkir/bbvue/src/components/AvatarUpload.vue
full url path set to avatars
This commit is contained in:
@@ -77,10 +77,10 @@ export default {
|
||||
}
|
||||
|
||||
// Извлекаем имя файла из пути
|
||||
const filename = avatarPath.split('/').pop();
|
||||
const filename = avatarPath.trim('/').split('/').pop();
|
||||
|
||||
// Используем API эндпоинт вместо прямого доступа
|
||||
const fullUrl = `https://begushiybashkir.ru/api/v1/user/avatar/${filename}`;
|
||||
const fullUrl = `https://begushiybashkir.ru/api/v1/user/avatars/${filename}`;
|
||||
console.log('Built URL with API endpoint:', fullUrl);
|
||||
return fullUrl;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user