게시글 제목 입력과 태그 표시 수정

This commit is contained in:
2026-05-13 15:58:22 +09:00
parent 52f22b4ff1
commit 020471a1b8
8 changed files with 40 additions and 8 deletions

View File

@@ -141,7 +141,16 @@ const deletePost = async (post) => {
</p>
</td>
<td class="admin-posts__cell px-4 py-4">
{{ post.tags.join(', ') || '-' }}
<div v-if="post.tags.length" class="admin-posts__tag-list flex flex-wrap gap-1.5">
<span
v-for="tag in post.tags"
:key="tag"
class="admin-posts__tag-badge inline-flex h-6 items-center rounded-[3px] bg-[#ecd2de] px-2 text-xs font-semibold text-[#e04e87]"
>
{{ tag }}
</span>
</div>
<span v-else class="admin-posts__tag-empty text-muted">-</span>
</td>
<td class="admin-posts__cell px-4 py-4">
{{ formatDate(post.updatedAt) }}