에러메세지
This commit is contained in:
parent
8d6ae54a9b
commit
9bc34a02fc
@ -531,7 +531,7 @@ const submitPassword = async () => {
|
|||||||
}
|
}
|
||||||
lastClickedButton.value = null;
|
lastClickedButton.value = null;
|
||||||
} else {
|
} else {
|
||||||
passwordAlert.value = "비밀번호가 일치하지 않습니다.????";
|
passwordAlert.value = "비밀번호가 일치하지 않습니다.";
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// console.log("📌 전체 오류:", error);
|
// console.log("📌 전체 오류:", error);
|
||||||
@ -552,6 +552,7 @@ const submitPassword = async () => {
|
|||||||
|
|
||||||
// 댓글 삭제 (비밀번호 확인 후)
|
// 댓글 삭제 (비밀번호 확인 후)
|
||||||
const submitCommentPassword = async (comment, password) => {
|
const submitCommentPassword = async (comment, password) => {
|
||||||
|
|
||||||
if (!password) {
|
if (!password) {
|
||||||
passwordCommentAlert.value = "비밀번호를 입력해주세요.";
|
passwordCommentAlert.value = "비밀번호를 입력해주세요.";
|
||||||
return;
|
return;
|
||||||
@ -564,12 +565,16 @@ 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 = "";
|
||||||
comment.isCommentPassword = false;
|
comment.isCommentPassword = false;
|
||||||
|
|
||||||
if (lastCommentClickedButton.value === "edit") {
|
if (lastCommentClickedButton.value === "edit") {
|
||||||
comment.isEditTextarea = true;
|
comment.isEditTextarea = true;
|
||||||
|
passwordCommentAlert.value = "";
|
||||||
|
|
||||||
// handleSubmitEdit(comment, comment.content);
|
// handleSubmitEdit(comment, comment.content);
|
||||||
} else if (lastCommentClickedButton.value === "delete") {
|
} else if (lastCommentClickedButton.value === "delete") {
|
||||||
|
passwordCommentAlert.value = "";
|
||||||
|
|
||||||
deleteReplyComment(comment)
|
deleteReplyComment(comment)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user