diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 3eae3d7..b4bf68f 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -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; +}; // 체크 상태 변경 시 부모로 전달