휴가관리 로딩페이지 추가

This commit is contained in:
dyhj625 2025-03-07 12:51:33 +09:00
parent 2d29bc56ec
commit 0d016ca2e1

View File

@ -1,6 +1,7 @@
<template>
<div class="container-xxl flex-grow-1 container-p-y">
<div class="card app-calendar-wrapper">
<LoadingSpinner v-if="isLoading" />
<div v-else class="card app-calendar-wrapper">
<div class="row g-0">
<!-- Sidebar: 사이드바 영역 -->
<div class="col-3 app-calendar-sidebar border-end" id="app-calendar-sidebar">
@ -86,6 +87,9 @@ import { useToastStore } from '@s/toastStore';
//
import { useRouter } from "vue-router";
import LoadingSpinner from "@v/LoadingPage.vue";
const isLoading = ref(true);
const router = useRouter();
//
const toastStore = useToastStore();
@ -264,6 +268,7 @@ const handleProfileClick = async (user) => {
};
//
const fetchUserList = async () => {
isLoading.value = true;
try {
await userListStore.fetchUserList();
userList.value = userListStore.userList;
@ -277,6 +282,8 @@ const fetchUserList = async () => {
});
} catch (error) {
console.error("📌 사용자 목록 불러오기 오류:", error);
} finally{
isLoading.value = false;
}
};
//