From 5b84ef9350be4e9272c2851299b472b1539592dc Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Tue, 11 Mar 2025 16:13:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=EC=B0=BD=20=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 95dbb06..09b9b19 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -370,7 +370,7 @@ // 댓글 작성 const handleCommentSubmit = async data => { closeAllEditTextareas(); - closeAllPasswordareas(); + closeAllPasswordAreas(); togglePassword('close'); if (!data) { return; @@ -528,7 +528,8 @@ }); }; - const closeAllPasswordareas = () => { + // 모든 댓글의 비밀번호 창 닫기 + const closeAllPasswordAreas = () => { currentPasswordCommentId.value = null; // 비밀번호 창 닫기 password.value = ''; passwordCommentAlert.value = ''; @@ -692,7 +693,6 @@ if (!confirm('정말 이 댓글을 삭제하시겠습니까?')) return; const targetComment = findCommentById(comment.commentId, comments.value); - console.log(comment.parentId, comment.commentId) try { const response = await axios.delete(`board/comment/${comment.commentId}`, { params: { LOCCMTSEQ: comment.commentId, LOCCMTPNT: comment.parentId }, @@ -700,6 +700,7 @@ if (response.data.code === 200) { await fetchComments(); + closeAllPasswordAreas(); if (targetComment) { // console.log('타겟',targetComment)