From 5bd56faf113ac6f761a9eec28631c621f6a7a32c Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Sat, 1 Feb 2025 16:17:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 10 +++++--- src/components/board/BoardContent.vue | 2 +- src/components/board/BoardProfile.vue | 6 ++++- src/views/board/BoardView.vue | 33 +++++++++++++++++++++++---- 4 files changed, 41 insertions(+), 10 deletions(-) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index 8016d3f..1a6d35b 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -1,6 +1,6 @@ - + @@ -84,6 +84,10 @@ const props = defineProps({ type: Number, default: null, }, + isChild: { + type: Boolean, + default: false, + } }); const boardId = 100; //수정필요!! diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 059b18c..e1d8591 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -16,12 +16,33 @@
-
{{ boardTitle }}
- -
+
+ +
+
{{ boardTitle }}
+
+ + +
+ + +
+ +
+
-
    + @@ -79,6 +100,7 @@ const attachments = ref([]); const views = ref(0); const likes = ref(0); const dislikes = ref(0); +const attachment = ref(false); // 라우트에서 ID 가져오기 const route = useRoute(); @@ -108,6 +130,7 @@ const fetchBoardDetails = async () => { views.value = data.cnt || 0; likes.value = data.likeCount || 0; dislikes.value = data.dislikeCount || 0; + attachment.value = data.hasAttachment || null; attachments.value = data.attachments || []; comments.value = data.comments || [];