From 9bc34a02fced3dd2a66b5be64feb3a142118faed Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 21 Feb 2025 16:03:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=EB=A9=94=EC=84=B8=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardView.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index a0e0824..8c50fe6 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -531,7 +531,7 @@ const submitPassword = async () => { } lastClickedButton.value = null; } else { - passwordAlert.value = "비밀번호가 일치하지 않습니다.????"; + passwordAlert.value = "비밀번호가 일치하지 않습니다."; } } catch (error) { // console.log("📌 전체 오류:", error); @@ -552,6 +552,7 @@ const submitPassword = async () => { // 댓글 삭제 (비밀번호 확인 후) const submitCommentPassword = async (comment, password) => { + if (!password) { passwordCommentAlert.value = "비밀번호를 입력해주세요."; return; @@ -564,12 +565,16 @@ const submitCommentPassword = async (comment, password) => { }); if (response.data.code === 200 && response.data.data === true) { + passwordCommentAlert.value = ""; comment.isCommentPassword = false; if (lastCommentClickedButton.value === "edit") { comment.isEditTextarea = true; + passwordCommentAlert.value = ""; + // handleSubmitEdit(comment, comment.content); } else if (lastCommentClickedButton.value === "delete") { + passwordCommentAlert.value = ""; deleteReplyComment(comment) }