From f369712a8152588bad4f0a153b5b189e6c3fe527 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 13 Mar 2025 12:06:18 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9C=B4=EA=B0=80=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/vacation/ProfileList.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/vacation/ProfileList.vue b/src/components/vacation/ProfileList.vue index 2c79ea9..fcab2a4 100644 --- a/src/components/vacation/ProfileList.vue +++ b/src/components/vacation/ProfileList.vue @@ -74,16 +74,13 @@ nextTick(() => { const sortedUserList = computed(() => { if (!employeeId.value) return []; - // 관리자가 아닌 사용자만 필터링 - const nonAdminUsers = userList.value.filter(user => user.MEMBERROL !== "ROLE_ADMIN"); - - const myProfile = nonAdminUsers.find(user => user.MEMBERSEQ === employeeId.value); - const otherUsers = nonAdminUsers.filter(user => user.MEMBERSEQ !== employeeId.value); + // 모든 사용자 포함 (관리자 필터링 제거) + const myProfile = userList.value.find(user => user.MEMBERSEQ === employeeId.value); + const otherUsers = userList.value.filter(user => user.MEMBERSEQ !== employeeId.value); return myProfile ? [myProfile, ...otherUsers] : otherUsers; }); - const getUserProfileImage = (profilePath) => profilePath && profilePath.trim() ? `${baseUrl}upload/img/profile/${profilePath}` : defaultProfile;