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

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

View File

@ -80,7 +80,7 @@
></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
:bigBtn="true"
:boardId="currentBoardId"
@ -92,7 +92,7 @@
@updateReaction="handleUpdateReaction"
/>
</div>
<div v-if="unknown || authorId" >
<div v-if="unknown" >
<!-- 댓글 입력 영역 -->
<BoardCommentArea
:profileName="profileName"
@ -106,7 +106,7 @@
</div>
<!-- 댓글 목록 -->
<div v-if="unknown || authorId" class="card-footer">
<div v-if="unknown" class="card-footer">
<BoardCommentList
:unknown="unknown"
:comments="commentsWithAuthStatus"