From 4440946c7496fae7d3b9902fc2224c2445132071 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Thu, 20 Feb 2025 15:20:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B5=EB=AA=85=EC=9D=BC=EB=95=8C=20?= =?UTF-8?q?=EC=9D=B5=EB=AA=85=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardCommentArea.vue | 2 +- src/views/board/BoardView.vue | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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