@@ -57,6 +59,40 @@
diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue
index e1b705b..fd27de0 100644
--- a/src/components/modal/VacationModal.vue
+++ b/src/components/modal/VacationModal.vue
@@ -1,49 +1,41 @@
-
📅 내 연차 사용 내역
-
+
📅 내 연차 사용 내역
+
-
-
-
- -
-
- {{ totalUsedVacationCount - usedVacations.findIndex(v => v.date === vacation.date) }})
-
-
- {{ vacation.type === 'used' ? '-' : '+' }}
-
-
- {{ formatDate(vacation.date) }}
-
- ({{ vacation.halfDay ? '반차' : '풀 연차' }})
- (보낸 연차)
-
-
-
-
-
+
+
+
+ -
+
+ {{ getVacationIndex(index) }})
+
+
+ {{ vacation.type === 'used' ? '-' : '+' }}
+
+
+ {{ formatDate(vacation.date) }}
+
+
+
+
-
-
- 🚫 사용한 연차가 없습니다.
-
+
+
+ 🚫 사용한 연차가 없습니다.
+
-
+
-
- const closeModal = () => {
- emit("close");
- };
-
-
-
+}
+
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index 2eb5e83..2559318 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -221,12 +221,12 @@ const handleUpdateReaction = async ({ boardId, commentId, isLike, isDislike }) =
};
// 댓글 목록 조회
-const fetchComments = async (pageNum = 1) => {
+const fetchComments = async (page = 1) => {
try {
const response = await axios.get(`board/${currentBoardId.value}/comments`, {
params: {
LOCBRDSEQ: currentBoardId.value,
- pageNum: pageNum
+ page
}
});
console.log("목록 API 응답 데이터:", response.data);