From dd9a94e3a938de648ef7b2ba515bb5b1ca93fbe4 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 24 Jan 2025 14:09:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A7=90=EC=A4=84=EC=9E=84=20=EB=B0=8F=20?= =?UTF-8?q?=EC=BB=A8=ED=85=90=EC=B8=A0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/BoardCard.vue | 3 ++- src/views/board/BoardList.vue | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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);