From 99d89008ed6c49014df651a69cada0c61c6e1150 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 25 Feb 2025 10:04:41 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80=EA=B3=BC=20=EB=8C=80?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=9D=B5=EB=AA=85=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 13 +- src/components/board/BoardCommentArea.vue | 24 +-- src/views/board/BoardView.vue | 174 +++++++++++++++------- 3 files changed, 138 insertions(+), 73 deletions(-) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index 0dafc9a..4e82bb7 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -48,7 +48,7 @@ - +
  • -
  • @@ -124,7 +124,8 @@ const toggleComment = () => { // 부모 컴포넌트에 대댓글 추가 요청 const submitComment = (newComment) => { - emit('submitComment', { parentId: props.comment.commentId, ...newComment }); + console.log(newComment) + emit('submitComment', { parentId: props.comment.commentId, ...newComment, LOCBRDTYP: newComment.LOCBRDTYP }); isComment.value = false; }; @@ -141,7 +142,7 @@ const handleUpdateReaction = (reactionData) => { // 비밀번호 확인 const logPasswordAndEmit = () => { emit('submitPassword', props.comment, password.value); - password.value = ""; + password.value = ""; }; watch(() => props.comment.isEditTextarea, (newVal) => { diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index 30e9084..f1a4294 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -23,7 +23,7 @@
    - +
    -
    +
    @@ -60,7 +59,7 @@ diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index d2b37b4..c7a5dcc 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -59,10 +59,10 @@
--> - +
- +

현재 로그인한 사용자 ID: {{ currentUserId }}

게시글 작성자: {{ authorId }}

-

isAuthor 값: {{ isAuthor }}

+

isAuthor 값: {{ isAuthor }}

- +