This commit is contained in:
kimdaae328 2025-02-28 16:22:14 +09:00
parent 77f248cead
commit 4cf31aee12
3 changed files with 1 additions and 33 deletions

View File

@ -42,11 +42,7 @@
<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"/>
@ -114,10 +110,6 @@ const props = defineProps({
type: Boolean,
default: false
},
isDeleted: {
type: Boolean,
default: false
},
isCommentPassword: {
type: Boolean,
default: false,
@ -172,15 +164,6 @@ watch(() => props.comment.isEditTextarea, (newVal) => {
}
});
// watch(() => props.comment.isDeleted, () => {
// console.log("BoardComment - isDeleted :", newVal);
// if (newVal) {
// localEditedContent.value = " ."; // UI
// props.comment.isEditTextarea = false;
// }
// });
//
const submitEdit = () => {
emit('submitEdit', props.comment, localEditedContent.value);

View File

@ -10,7 +10,6 @@
:comment="comment"
:isCommentAuthor="comment.isCommentAuthor"
:isEditTextarea="comment.isEditTextarea"
:isDeleted="isDeleted"
:isCommentPassword="isCommentPassword"
:passwordCommentAlert="passwordCommentAlert || ''"
:currentPasswordCommentId="currentPasswordCommentId"
@ -54,10 +53,6 @@ const props = defineProps({
type: Boolean,
default: false,
},
isDeleted: {
type: Boolean,
default: false,
},
passwordCommentAlert: {
type: String,
default: ''

View File

@ -102,7 +102,6 @@
:comments="commentsWithAuthStatus"
:isCommentPassword="isCommentPassword"
:isEditTextarea="isEditTextarea"
:isDeleted="isDeleted"
:passwordCommentAlert="passwordCommentAlert"
:currentPasswordCommentId="currentPasswordCommentId"
:password="password"
@ -184,7 +183,6 @@ const currentPasswordCommentId = ref(null);
const lastClickedButton = ref("");
const lastCommentClickedButton = ref("");
const isEditTextarea = ref(false);
const isDeleted = ref(true);
const commentAlert = ref('');
const updatePassword = (newPassword) => {
@ -686,14 +684,6 @@ const deleteReplyComment = async (comment) => {
if (response.data.code === 200) {
await fetchComments();
if (targetComment) {
// console.log('',targetComment)
// " ." ,
targetComment.content = "댓글이 삭제되었습니다.";
targetComment.author = "알 수 없음"; //
targetComment.isDeleted = true; //
}
} else {
alert("댓글 삭제에 실패했습니다.");
}