리스트...추가,공지좋아요,댓글 없애기

This commit is contained in:
dyhj625 2025-04-01 11:22:07 +09:00
parent ebad7d3d5f
commit 5cb43eac9f
2 changed files with 9 additions and 5 deletions

View File

@ -65,7 +65,7 @@
<td class="cursor-pointer"> <td class="cursor-pointer">
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<span class="me-1">📌</span> <span class="me-1">📌</span>
<span>{{ notice.title }}</span> <span>{{ truncateTitle(notice.title) }}</span>
<span v-if="notice.commentCount" class="text-danger fw-bold mx-1"> <span v-if="notice.commentCount" class="text-danger fw-bold mx-1">
[ {{ notice.commentCount }} ] [ {{ notice.commentCount }} ]
@ -95,7 +95,7 @@
<td class="text-center">{{ post.id }}</td> <td class="text-center">{{ post.id }}</td>
<td class="cursor-pointer"> <td class="cursor-pointer">
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
{{ post.title }} {{ truncateTitle(post.title) }}
<span v-if="post.commentCount" class="comment-count">[ {{ post.commentCount }} ]</span> <span v-if="post.commentCount" class="comment-count">[ {{ post.commentCount }} ]</span>
<i v-if="post.img" class="bi bi-image mx-1"></i> <i v-if="post.img" class="bi bi-image mx-1"></i>
<i <i
@ -177,6 +177,10 @@
router.push({ name: 'BoardDetail', params: { id: id } }); router.push({ name: 'BoardDetail', params: { id: id } });
}; };
const truncateTitle = title => {
return title.length > 28 ? title.slice(0, 28) + '...' : title;
};
// //
const saveFilterToStorage = seq => { const saveFilterToStorage = seq => {
const query = { const query = {

View File

@ -80,7 +80,7 @@
></div> ></div>
<!-- 좋아요 버튼 --> <!-- 좋아요 버튼 -->
<div v-if="unknown || authorId" class="row justify-content-center my-10"> <div v-if="unknown" class="row justify-content-center my-10">
<BoardRecommendBtn <BoardRecommendBtn
:bigBtn="true" :bigBtn="true"
:boardId="currentBoardId" :boardId="currentBoardId"
@ -92,7 +92,7 @@
@updateReaction="handleUpdateReaction" @updateReaction="handleUpdateReaction"
/> />
</div> </div>
<div v-if="unknown || authorId" > <div v-if="unknown" >
<!-- 댓글 입력 영역 --> <!-- 댓글 입력 영역 -->
<BoardCommentArea <BoardCommentArea
:profileName="profileName" :profileName="profileName"
@ -106,7 +106,7 @@
</div> </div>
<!-- 댓글 목록 --> <!-- 댓글 목록 -->
<div v-if="unknown || authorId" class="card-footer"> <div v-if="unknown" class="card-footer">
<BoardCommentList <BoardCommentList
:unknown="unknown" :unknown="unknown"
:comments="commentsWithAuthStatus" :comments="commentsWithAuthStatus"