diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 91c7e29..3eca89b 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -579,25 +579,24 @@ const submitCommentPassword = async (comment, password) => { }); if (response.data.code === 200 && response.data.data === true) { - passwordCommentAlert.value = ''; + passwordCommentAlert.value = ""; comment.isCommentPassword = false; // 수정 if (lastCommentClickedButton.value === "edit") { if (targetComment) { - currentPasswordCommentId.value = null; - password.value = ''; - passwordCommentAlert.value = ''; - + currentPasswordCommentId.value = false; + //여기서 input 창 닫혀야함 targetComment.isEditTextarea = true; + passwordCommentAlert.value = ""; } else { alert("수정 취소를 실패했습니다."); } //삭제 } else if (lastCommentClickedButton.value === "delete") { - passwordCommentAlert.value = ''; + passwordCommentAlert.value = ""; deleteReplyComment(comment) }