From 416ec12a2064459cb3413b457ffa9d240198ce05 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Fri, 28 Mar 2025 10:08:22 +0900 Subject: [PATCH] 250328 10am --- src/views/board/BoardView.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 6b8f17b..af76558 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -93,15 +93,15 @@ />
- - + +
@@ -337,7 +337,9 @@ createdAtRaw: comment.LOCCMTRDT, // 작성일 // createdAt: formattedDate(comment.LOCCMTRDT), // 작성일(노출용) // createdAtRaw: new Date(comment.LOCCMTUDT), // 수정순 - createdAt: formattedDate(comment.LOCCMTUDT) + (comment.content === '삭제된 댓글입니다' && comment.LOCCMTUDT !== comment.LOCCMTRDT ? ' (수정됨)' : ''), // 수정일(노출용) + createdAt: + formattedDate(comment.LOCCMTUDT) + + (comment.content === '삭제된 댓글입니다' && comment.LOCCMTUDT !== comment.LOCCMTRDT ? ' (수정됨)' : ''), // 수정일(노출용) children: [], // 대댓글을 담을 배열 updateAtRaw: comment.LOCCMTUDT, })) @@ -728,7 +730,6 @@ closeAllPasswordAreas(); if (targetComment) { - // console.log('타겟',targetComment) // 댓글 내용만 "삭제된 댓글입니다."로 변경하고, 구조는 유지 targetComment.content = '댓글이 삭제되었습니다.'; targetComment.author = '알 수 없음'; // 익명 처리