From dbc0ad83ae34561fafafc56dfedfd83af6ecfd57 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Mon, 3 Feb 2025 10:48:21 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EB=B3=B4=EB=93=9C=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20width=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardList.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 3b173dc..1c1c2c3 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -1,21 +1,20 @@ -// formattedDate을 computed로 정의 -const formattedDate = computed(() => { - const date = new Date(props.date); - return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String( - date.getDate() - ).padStart(2, "0")} ${String(date.getHours()).padStart(2, "0")}:${String( - date.getMinutes() - ).padStart(2, "0")}`; -}); - - - + diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue index f727c6e..430a73d 100644 --- a/src/components/list/BoardCardList.vue +++ b/src/components/list/BoardCardList.vue @@ -1,21 +1,25 @@ diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 1c1c2c3..89eb2e8 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -2,7 +2,7 @@
-
+
@@ -13,23 +13,7 @@
-
- - -
-
-

공지사항

-
-
- -
-
- - -
-
-

일반게시판

- +
+ + +
+
+ +
+
+ + +
@@ -64,7 +58,6 @@
-
diff --git a/src/components/board/BoardContent.vue b/src/components/board/BoardContent.vue index 2b5abbd..7b46e86 100644 --- a/src/components/board/BoardContent.vue +++ b/src/components/board/BoardContent.vue @@ -3,7 +3,7 @@
-
{{ boardTitle }}
+
{{ boardTitle }}adada
diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue index c15a60b..d5091f5 100644 --- a/src/components/board/BoardProfile.vue +++ b/src/components/board/BoardProfile.vue @@ -104,6 +104,7 @@ const handleDelete = async () => { alert('게시물이 성공적으로 삭제되었습니다.'); router.push({ name: 'BoardList' }); } catch (error) { + console.error('게시물 삭제 중 오류 발생:', error); alert('게시물 삭제에 실패했습니다.'); } } diff --git a/src/components/button/BoardRecommendBtn.vue b/src/components/button/BoardRecommendBtn.vue index 71fae76..b179da3 100644 --- a/src/components/button/BoardRecommendBtn.vue +++ b/src/components/button/BoardRecommendBtn.vue @@ -1,14 +1,16 @@ \ No newline at end of file + diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 2f0ff56..18df4be 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -120,6 +120,7 @@ const fetchBoardDetails = async () => { // API 응답 데이터 반영 const boardDetail = data.boardDetail || {}; + // console.log('boardDetail:', boardDetail); profileName.value = data.author || '익명 사용자'; boardTitle.value = data.title || '제목 없음'; From 8e42b6b2b504a8a3a57c9c6a8852f3e6f309bb4f Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Mon, 3 Feb 2025 14:57:34 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EB=84=93=EC=9D=B4?= =?UTF-8?q?=EA=B3=A0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/BoardCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index 3f22a7d..fe0eecc 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -1,5 +1,5 @@