휴가수정2
This commit is contained in:
parent
f369712a81
commit
d38f89c5bc
@ -269,11 +269,7 @@ const fetchUserList = async () => {
|
|||||||
try {
|
try {
|
||||||
await userListStore.fetchUserList();
|
await userListStore.fetchUserList();
|
||||||
|
|
||||||
// "ROLE_ADMIN"을 제외하고 필터링
|
userList.value = [...userListStore.userList];
|
||||||
const filteredUsers = userListStore.userList.filter(user => user.MEMBERROL !== "ROLE_ADMIN");
|
|
||||||
|
|
||||||
// 필터링된 리스트를 userList에 반영
|
|
||||||
userList.value = [...filteredUsers];
|
|
||||||
|
|
||||||
if (!userList.value.length) {
|
if (!userList.value.length) {
|
||||||
console.warn("📌 사용자 목록이 비어 있음!");
|
console.warn("📌 사용자 목록이 비어 있음!");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user