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" /> -
+
- + - - + + - -
    -
  • - -
  • -
+
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 @@
-->
- + {{ commentAlert }} {{ textAlert }}
@@ -22,8 +22,8 @@
- - + +
@@ -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 @@ 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 @@