diff --git a/public/css/custom.css b/public/css/custom.css
index e9d477a..8127a4c 100644
--- a/public/css/custom.css
+++ b/public/css/custom.css
@@ -3,6 +3,9 @@
/* 휴가 */
+.fc-daygrid-event {
+ pointer-events: none !important;
+}
/* 이벤트 선 없게 */
.fc-event {
border: none;
diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue
index c7e9220..89fd3ad 100644
--- a/src/components/board/BoardComment.vue
+++ b/src/components/board/BoardComment.vue
@@ -16,7 +16,7 @@
@updateReaction="handleUpdateReaction"
/>
-
+
-
+
-
-
+
+
-
-
- -
- $emit('submitEdit', comment, editedContent)"
- @cancelEdit="$emit('cancelEdit', child)"
- @submitComment="submitComment"
- @updateReaction="handleUpdateReaction"
- @submitPassword="$emit('submitPassword', child, password)"
- @update:password="$emit('update:password', $event)"
- />
-
-
+
diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue
index 283ce8b..b304795 100644
--- a/src/components/board/BoardCommentArea.vue
+++ b/src/components/board/BoardCommentArea.vue
@@ -11,7 +11,7 @@
-->
-
-
+
+
@@ -51,78 +51,84 @@
+ if (isCheck.value && !$common.isNotEmpty(password.value)) {
+ passwordAlert2.value = '비밀번호를 입력하세요';
+ return false;
+ } else {
+ passwordAlert2.value = '';
+ }
+
+ // 댓글 제출
+ emit('submitComment', {
+ comment: comment.value,
+ password: isCheck.value ? password.value : '',
+ isCheck: isCheck.value,
+ LOCBRDTYP: isCheck.value ? '300102' : null, // 익명일 경우 '300102' 설정
+ });
+
+ // 제출 후 입력 필드 리셋
+ resetCommentForm();
+ };
+
+ // 입력 필드 리셋 함수 추가
+ const resetCommentForm = () => {
+ comment.value = '';
+ password.value = '';
+ isCheck.value = false;
+ };
+
+ watch(
+ () => props.passwordAlert,
+ () => {
+ if (!props.passwordAlert) {
+ resetCommentForm();
+ }
+ },
+ );
+
diff --git a/src/components/board/BoardCommentList.vue b/src/components/board/BoardCommentList.vue
index 0987a4c..65091ae 100644
--- a/src/components/board/BoardCommentList.vue
+++ b/src/components/board/BoardCommentList.vue
@@ -1,17 +1,13 @@
- -
+
-
handleUpdateReaction(reactionData, comment.commentId, comment.boardId)"
+ @updateReaction="reactionData => handleUpdateReaction(reactionData, comment.commentId, comment.boardId)"
@update:password="updatePassword"
- />
+ >
+
+
+
+ -
+ $emit('submitEdit', comment, editedContent)"
+ @cancelEdit="$emit('cancelEdit', child)"
+ @submitComment="submitComment"
+ @updateReaction="handleUpdateReaction"
+ @submitPassword="$emit('submitPassword', child, password)"
+ @update:password="$emit('update:password', $event)"
+ />
+
+
+
+
diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue
index 87e08bc..b183865 100644
--- a/src/components/board/BoardProfile.vue
+++ b/src/components/board/BoardProfile.vue
@@ -40,7 +40,7 @@
const defaultProfile = '/img/icons/icon.png';
// 서버의 이미지 경로 (Vue 환경 변수 사용 가능)
- const baseUrl = 'http://localhost:10325/'; // API 서버 URL
+ const baseUrl = import.meta.env.VITE_SERVER; // API 서버 URL
// Props 정의
const props = defineProps({
diff --git a/src/components/button/BoardRecommendBtn.vue b/src/components/button/BoardRecommendBtn.vue
index 8ffa805..3c951bd 100644
--- a/src/components/button/BoardRecommendBtn.vue
+++ b/src/components/button/BoardRecommendBtn.vue
@@ -1,124 +1,123 @@
-
diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue
index 2592d53..59f0380 100644
--- a/src/components/modal/VacationModal.vue
+++ b/src/components/modal/VacationModal.vue
@@ -1,7 +1,7 @@
-
📅 내 연차 사용 내역
+
📅 내 연차 상세 내역
✖
@@ -26,8 +26,8 @@
-
- 🚫 사용한 연차가 없습니다.
+
+ 🚫 연차 내역이 없습니다.
@@ -58,19 +58,15 @@ const emit = defineEmits(["close"]);
// 사용한 휴가(선물,연차사용)
let globalCounter = 0;
const usedVacations = computed(() => {
- const result = [];
- props.myVacations.forEach((v) => {
+ return props.myVacations.flatMap((v) => {
const count = v.used_quota || 1;
- for (let i = 0; i < count; i++) {
- result.push({
- ...v,
- category: "used",
- code: v.LOCVACTYP,
- _expandIndex: globalCounter++,
- });
- }
+ return Array.from({ length: count }, (_, i) => ({
+ ...v,
+ category: "used",
+ code: v.LOCVACTYP,
+ _expandIndex: globalCounter++,
+ }));
});
- return result;
});
// 받은 휴가
@@ -114,7 +110,7 @@ const mergedVacations = computed(() => {
// 모달 닫기
const closeModal = () => {
- emit("close");
+ emit("close");
};