익명 댓글 비밀번호 나오는곳 수정해야함

This commit is contained in:
kimdaae328 2025-02-28 13:02:55 +09:00
parent 785df5c51f
commit 421ec4eaec

View File

@ -579,25 +579,24 @@ const submitCommentPassword = async (comment, password) => {
}); });
if (response.data.code === 200 && response.data.data === true) { if (response.data.code === 200 && response.data.data === true) {
passwordCommentAlert.value = ''; passwordCommentAlert.value = "";
comment.isCommentPassword = false; comment.isCommentPassword = false;
// //
if (lastCommentClickedButton.value === "edit") { if (lastCommentClickedButton.value === "edit") {
if (targetComment) { if (targetComment) {
currentPasswordCommentId.value = null; currentPasswordCommentId.value = false;
password.value = ''; // input
passwordCommentAlert.value = '';
targetComment.isEditTextarea = true; targetComment.isEditTextarea = true;
passwordCommentAlert.value = "";
} else { } else {
alert("수정 취소를 실패했습니다."); alert("수정 취소를 실패했습니다.");
} }
// //
} else if (lastCommentClickedButton.value === "delete") { } else if (lastCommentClickedButton.value === "delete") {
passwordCommentAlert.value = ''; passwordCommentAlert.value = "";
deleteReplyComment(comment) deleteReplyComment(comment)
} }