diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue
index 456aa3e..e7468f0 100644
--- a/src/components/list/BoardCard.vue
+++ b/src/components/list/BoardCard.vue
@@ -25,7 +25,7 @@
-
+ {{ content }}
{{ formattedDate }}
@@ -125,6 +125,7 @@ const formattedDate = computed(() => {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
+ -webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue
index 87c4d0a..a56cc80 100644
--- a/src/views/board/BoardList.vue
+++ b/src/views/board/BoardList.vue
@@ -136,6 +136,7 @@ const fetchGeneralPosts = async (page = 1) => {
likes: post.likeCount != null ? post.likeCount : null,
comments: post.commentCount != null ? post.commentCount : null,
attachment: post.hasAttachment || false,
+ content: post.plainContent || '',
}));
// 페이지네이션 정보 업데이트
@@ -173,6 +174,7 @@ const fetchNoticePosts = async () => {
img: post.img || null,
views: post.cnt || 0,
attachment: post.hasAttachment || false,
+ content: post.plainContent || '',
}));
} else {
console.error("데이터 오류:", response.data);