From 3e6c9f2c976146c70707bd0f1ca7b9048b386df6 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Tue, 21 Jan 2025 15:00:14 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EC=BD=94=EB=A9=98=ED=8A=B8=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20?= =?UTF-8?q?=EC=85=80=EB=A0=89=ED=8A=B8=20=EB=B0=95=EC=8A=A4=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/BoardCard.vue | 12 +++--- src/components/list/BoardCardList.vue | 58 ++++++++++++++++----------- src/components/search/SearchBar.vue | 2 +- src/views/board/BoardList.vue | 48 +++++++++++----------- 4 files changed, 66 insertions(+), 54 deletions(-) diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index 327e1e7..bbe6551 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -34,11 +34,11 @@ {{ views || 0 }} - - {{ likes || 0 }} + + {{ likes }} - - {{ comments || 0 }} + + {{ comments }} @@ -80,11 +80,11 @@ const props = defineProps({ }, likes: { type: Number, - default: 0, + default: null, }, comments: { type: Number, - default: 0, + default: null, }, attachment: { type: Boolean, diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue index 23f55ca..f727c6e 100644 --- a/src/components/list/BoardCardList.vue +++ b/src/components/list/BoardCardList.vue @@ -1,43 +1,53 @@ - diff --git a/src/components/search/SearchBar.vue b/src/components/search/SearchBar.vue index 56a918b..a9c1052 100644 --- a/src/components/search/SearchBar.vue +++ b/src/components/search/SearchBar.vue @@ -1,6 +1,6 @@ diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 2f5d056..d5e0a45 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -1,6 +1,5 @@