용어집 기본프로필 수정

This commit is contained in:
Dang 2025-02-21 14:45:50 +09:00
parent c612a8a90f
commit 2fb0ca06dc

View File

@ -194,8 +194,11 @@ const baseUrl = $api.defaults.baseURL.replace(/api\/$/, '');
const formatDate = (dateString) => new Date(dateString).toLocaleString();
//
const getProfileImage = (imagePath) =>
imagePath ? `${baseUrl}upload/img/profile/${imagePath}` : '/img/avatars/default-Profile.jpg';
const defaultProfile = "/img/icons/icon.png";
const getProfileImage = (profilePath) => {
return profilePath && profilePath.trim() ? `${baseUrl}upload/img/profile/${profilePath}` : defaultProfile;
};
//