diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue
index c7e9220..5f298a6 100644
--- a/src/components/board/BoardComment.vue
+++ b/src/components/board/BoardComment.vue
@@ -42,11 +42,7 @@
{{ comment.content }}
-
-
-
+
@@ -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);
diff --git a/src/components/board/BoardCommentList.vue b/src/components/board/BoardCommentList.vue
index 0987a4c..1b47923 100644
--- a/src/components/board/BoardCommentList.vue
+++ b/src/components/board/BoardCommentList.vue
@@ -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: ''
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index af8c290..cae48bd 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -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("댓글 삭제에 실패했습니다.");
}