console.log 삭제
This commit is contained in:
parent
09a665d079
commit
8dd206d32d
@ -125,23 +125,18 @@ const common = {
|
||||
* @returns
|
||||
*/
|
||||
getProfileImage(profileImg, isAnonymous = false) {
|
||||
console.log('profileImg: ', profileImg);
|
||||
const defaultProfileImg = '/img/icons/icon.png'; // 기본 프로필 이미지 경로
|
||||
const anonymousImg = '/img/avatars/default-Profile.jpg'; // 익명 이미지
|
||||
let profileImgUrl = isAnonymous ? anonymousImg : defaultProfileImg;
|
||||
console.log('profileImgUrl: ', profileImgUrl);
|
||||
const UserProfile = `${import.meta.env.VITE_SERVER}upload/img/profile/${profileImg}`;
|
||||
|
||||
return !profileImg || profileImg === '' ? profileImgUrl : UserProfile;
|
||||
},
|
||||
|
||||
setDefaultImage(event, deafultImg = '/img/icons/icon.png') {
|
||||
console.log('deafultImg: ', deafultImg);
|
||||
console.log('event: ', event);
|
||||
return (event.target.src = deafultImg);
|
||||
},
|
||||
showImage(event) {
|
||||
console.log('event: ', event);
|
||||
return (event.target.style.visibility = 'visible');
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user