diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index db85f1d..02935d5 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -74,7 +74,7 @@ const props = defineProps({ const comment = ref(''); const password = ref(''); -const isCheck = ref(false); +const isCheck = ref(props.unknown); const emit = defineEmits(['submitComment']); diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 5054ac9..08dca92 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -264,13 +264,12 @@ const fetchComments = async (page = 1) => { } }); - - // const replyResponse = await axios.get(`board/${currentBoardId.value}/reply`, { - // params: { LOCBRDSEQ: currentBoardId.value } - // }); + const replyResponse = await axios.get(`board/${currentBoardId.value}/reply`, { + params: { LOCBRDSEQ: currentBoardId.value } + }); // console.log("댓글:", response.data); - // console.log("대댓글:", replyResponse.data); + console.log("대댓글:", replyResponse.data); comments.value = response.data.data.list.map(comment => ({ commentId: comment.LOCCMTSEQ, // 댓글 ID