From 613d9f4c163e0015fea8b3c0ed5bcd0f7b546760 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 28 Feb 2025 13:17:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=A4=91=EC=9D=B4=EB=A9=B4=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=B0=BD=20no?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 3eca89b..08411aa 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -476,6 +476,7 @@ const editComment = (comment) => { targetComment.isEditTextarea = !targetComment.isEditTextarea; lastCommentClickedButton.value = "edit"; } else if (isAnonymous) { + if (targetComment.isEditTextarea) return; toggleCommentPassword(comment, "edit"); } else { alert("수정이 불가능합니다"); @@ -586,10 +587,10 @@ const submitCommentPassword = async (comment, password) => { if (lastCommentClickedButton.value === "edit") { if (targetComment) { - currentPasswordCommentId.value = false; //여기서 input 창 닫혀야함 targetComment.isEditTextarea = true; passwordCommentAlert.value = ""; + currentPasswordCommentId.value = null; } else { alert("수정 취소를 실패했습니다.");