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) }