isDeleted 삭제후 메세지 남기기 하는중
This commit is contained in:
parent
f5911247fb
commit
40584f0269
@ -38,15 +38,15 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="comment.isDeleted">
|
||||
<p class="m-0 text-muted">댓글이 삭제되었습니다.</p>
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<p class="m-0">{{ comment.content }}</p>
|
||||
</template>
|
||||
</div>
|
||||
<!-- <p>현재 isDeleted 값: {{ isDeleted }}</p> -->
|
||||
|
||||
<!-- <template v-if="isDeleted">
|
||||
<p class="m-0 text-muted">댓글이 삭제되었습니다.</p>
|
||||
</template> -->
|
||||
<PlusButton v-if="isPlusButton" @click="toggleComment" class="mt-6"/>
|
||||
<BoardCommentArea v-if="isComment" :unknown="unknown" @submitComment="submitComment"/>
|
||||
|
||||
@ -172,12 +172,14 @@ watch(() => props.comment.isEditTextarea, (newVal) => {
|
||||
}
|
||||
});
|
||||
|
||||
watch(() => props.comment.isDeleted, () => {
|
||||
if (newVal) {
|
||||
localEditedContent.value = "댓글이 삭제되었습니다."; // UI 반영
|
||||
props.comment.isEditTextarea = false;
|
||||
}
|
||||
});
|
||||
// watch(() => props.comment.isDeleted, () => {
|
||||
// console.log("BoardComment - isDeleted 상태 변경됨:", newVal);
|
||||
|
||||
// if (newVal) {
|
||||
// localEditedContent.value = "댓글이 삭제되었습니다."; // UI 반영
|
||||
// props.comment.isEditTextarea = false;
|
||||
// }
|
||||
// });
|
||||
|
||||
// 수정버튼
|
||||
const submitEdit = () => {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
:comment="comment"
|
||||
:isCommentAuthor="comment.isCommentAuthor"
|
||||
:isEditTextarea="comment.isEditTextarea"
|
||||
:isDeleted="comment.isDeleted"
|
||||
:isDeleted="isDeleted"
|
||||
:isCommentPassword="isCommentPassword"
|
||||
:passwordCommentAlert="passwordCommentAlert || ''"
|
||||
:currentPasswordCommentId="currentPasswordCommentId"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user