From 5ae3d3bc758cd8386f93f1c0f78c3c49b8f2692f Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 6 Mar 2025 09:47:37 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=EB=90=9C=20=EB=8C=93=EA=B8=80=20=EC=95=88=EB=B3=B4?= =?UTF-8?q?=EC=9D=B4=EA=B2=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index d268bb6..84bb8b2 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -306,7 +306,8 @@ const fetchComments = async (page = 1) => { createdAtRaw: new Date(comment.LOCCMTRDT), // 정렬용 createdAt: formattedDate(comment.LOCCMTRDT), // 표시용 children: [], // 대댓글을 담을 배열 - updateAtRaw: new Date(comment.LOCCMTUDT), + updateAtRaw: comment.LOCCMTUDT, + })); commentsList.sort((a, b) => b.createdAtRaw - a.createdAtRaw);