diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index 29b7267..c0c91c5 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -101,6 +101,7 @@ isCheck: isCheck.value, LOCBRDTYP, // 익명일 경우 '300102' 설정 }); + comment.value = ''; } watch( diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 653c54d..af8c290 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -391,6 +391,8 @@ const handleCommentSubmit = async (data) => { if (response.status === 200) { passwordAlert.value = ''; commentAlert.value = ''; + + data.comment = ""; await fetchComments(); } else { alert("댓글 작성을 실패했습니다.")