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 = '';