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"