From 4720e619581dc57a57d42ac8ba2595028ec9b9e2 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 28 Feb 2025 11:09:10 +0900 Subject: [PATCH] =?UTF-8?q?warning=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 6 +++++- src/components/board/BoardCommentList.vue | 4 ++++ src/views/board/BoardView.vue | 7 ++++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index 4ad12f7..01879d2 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -16,7 +16,7 @@ @updateReaction="handleUpdateReaction" /> -
+
{ // 익명 비밀번호 창 토글 const toggleCommentPassword = (comment, button) => { console.log(comment.commentId) - if (lastCommentClickedButton.value === button && isCommentPassword.value === comment.commentId) { - isCommentPassword.value = false; // 비밀번호 창 닫기 + if (lastCommentClickedButton.value === button && currentPasswordCommentId.value === comment.commentId) { + currentPasswordCommentId.value = null; // 비밀번호 창 닫기 } else { - isCommentPassword.value = comment.commentId; // 비밀번호 창 열기 + currentPasswordCommentId.value = comment.commentId; // 비밀번호 창 열기 } lastCommentClickedButton.value = button;