From ef1101d9ee5edd2a6ca732d1991fbd28c650cdfe Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Tue, 11 Mar 2025 13:33:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=20=ED=86=A0=EA=B8=80=20?= =?UTF-8?q?=EB=8B=AB=EA=B8=B0=EB=8F=84=20=EB=90=98=EA=B2=8C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 26f5c38..9f3d352 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -472,7 +472,7 @@ const editComment = comment => { password.value = ''; passwordCommentAlert.value = ''; - currentPasswordCommentId.value = null; + //currentPasswordCommentId.value = null; const targetComment = findCommentById(comment.commentId, comments.value); @@ -498,6 +498,7 @@ } else if (isAnonymous) { if (currentPasswordCommentId.value === comment.commentId) { // 이미 비밀번호 입력 중이면 유지 + toggleCommentPassword(comment, 'edit'); return; } else { // 다른 모든 댓글의 수정창 닫기 @@ -540,6 +541,9 @@ // 익명 댓글 비밀번호 창 토글 const toggleCommentPassword = (comment, button) => { + console.log('comment.commentId: ', comment.commentId); + console.log('currentPasswordCommentId.value: ', currentPasswordCommentId.value); + console.log('lastCommentClickedButton.value : ', lastCommentClickedButton.value); if (lastCommentClickedButton.value === button && currentPasswordCommentId.value === comment.commentId) { currentPasswordCommentId.value = null; // 비밀번호 창 닫기 password.value = '';