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