Merge branch 'main' into board-view-profile

This commit is contained in:
yoon 2025-01-24 15:18:25 +09:00
commit 758a717d47
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@
</span>
</h5>
<!-- 본문 -->
<div class="card-text str_wrap" v-html="$common.contentToHtml(content)"></div>
<div class="card-text str_wrap my-5">{{ content }}</div>
<!-- 날짜 -->
<div class="d-flex justify-content-between">
<small class="text-muted">{{ formattedDate }}</small>
@ -125,6 +125,7 @@ const formattedDate = computed(() => {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

View File

@ -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);