에러메세지
This commit is contained in:
parent
8d6ae54a9b
commit
9bc34a02fc
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user