콘솔 삭제
This commit is contained in:
parent
40584f0269
commit
8bc2152490
@ -675,7 +675,7 @@ const deleteReplyComment = async (comment) => {
|
|||||||
|
|
||||||
const targetComment = findCommentById(comment.commentId, comments.value);
|
const targetComment = findCommentById(comment.commentId, comments.value);
|
||||||
|
|
||||||
console.log('잘되니?',comment)
|
// console.log('잘되니?',comment)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.delete(`board/comment/${comment.commentId}`, {
|
const response = await axios.delete(`board/comment/${comment.commentId}`, {
|
||||||
@ -686,7 +686,7 @@ const deleteReplyComment = async (comment) => {
|
|||||||
await fetchComments();
|
await fetchComments();
|
||||||
|
|
||||||
if (targetComment) {
|
if (targetComment) {
|
||||||
console.log('타겟',targetComment)
|
// console.log('타겟',targetComment)
|
||||||
// ✅ 댓글 내용만 "삭제된 댓글입니다."로 변경하고, 구조는 유지
|
// ✅ 댓글 내용만 "삭제된 댓글입니다."로 변경하고, 구조는 유지
|
||||||
targetComment.content = "댓글이 삭제되었습니다.";
|
targetComment.content = "댓글이 삭제되었습니다.";
|
||||||
targetComment.author = "알 수 없음"; // 익명 처리
|
targetComment.author = "알 수 없음"; // 익명 처리
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user