댓글 삭제수정
This commit is contained in:
parent
c30ccea258
commit
7ec6424667
@ -677,12 +677,10 @@
|
|||||||
if (!confirm('정말 이 댓글을 삭제하시겠습니까?')) return;
|
if (!confirm('정말 이 댓글을 삭제하시겠습니까?')) return;
|
||||||
|
|
||||||
const targetComment = findCommentById(comment.commentId, comments.value);
|
const targetComment = findCommentById(comment.commentId, comments.value);
|
||||||
|
console.log(comment.parentId, comment.commentId)
|
||||||
// console.log('잘되니?',comment)
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.delete(`board/comment/${comment.commentId}`, {
|
const response = await axios.delete(`board/comment/${comment.commentId}`, {
|
||||||
data: { LOCCMTSEQ: comment.commentId },
|
params: { LOCCMTSEQ: comment.commentId, LOCCMTPNT: comment.parentId },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.data.code === 200) {
|
if (response.data.code === 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user