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 || [];