From 40584f0269353496341f9f7b255e1d94c485aa1b Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 28 Feb 2025 14:43:18 +0900 Subject: [PATCH] =?UTF-8?q?isDeleted=20=EC=82=AD=EC=A0=9C=ED=9B=84=20?= =?UTF-8?q?=EB=A9=94=EC=84=B8=EC=A7=80=20=EB=82=A8=EA=B8=B0=EA=B8=B0=20?= =?UTF-8?q?=ED=95=98=EB=8A=94=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 24 ++++++++++++----------- src/components/board/BoardCommentList.vue | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index 616e583..c7e9220 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -38,15 +38,15 @@ - - - + + + @@ -172,12 +172,14 @@ watch(() => props.comment.isEditTextarea, (newVal) => { } }); -watch(() => props.comment.isDeleted, () => { - if (newVal) { - localEditedContent.value = "댓글이 삭제되었습니다."; // UI 반영 - props.comment.isEditTextarea = false; - } -}); +// watch(() => props.comment.isDeleted, () => { +// console.log("BoardComment - isDeleted 상태 변경됨:", newVal); + +// if (newVal) { +// localEditedContent.value = "댓글이 삭제되었습니다."; // UI 반영 +// props.comment.isEditTextarea = false; +// } +// }); // 수정버튼 const submitEdit = () => { diff --git a/src/components/board/BoardCommentList.vue b/src/components/board/BoardCommentList.vue index a33e464..0987a4c 100644 --- a/src/components/board/BoardCommentList.vue +++ b/src/components/board/BoardCommentList.vue @@ -10,7 +10,7 @@ :comment="comment" :isCommentAuthor="comment.isCommentAuthor" :isEditTextarea="comment.isEditTextarea" - :isDeleted="comment.isDeleted" + :isDeleted="isDeleted" :isCommentPassword="isCommentPassword" :passwordCommentAlert="passwordCommentAlert || ''" :currentPasswordCommentId="currentPasswordCommentId"