From df024efdd340ea36e5e102e1d909a2925c7e019f Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Mon, 10 Mar 2025 13:02:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80,=20=EB=B9=84=EB=B0=80?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EC=9E=85=EB=A0=A5=20=EA=B0=90=EC=A7=80=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=A0=EB=AC=B8=EA=B5=AC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardCommentArea.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index b304795..0ffbc98 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -11,7 +11,14 @@ -->
- + {{ commentAlert }} {{ textAlert }}
@@ -35,6 +42,7 @@ class="form-control flex-grow-1" v-model="password" placeholder="비밀번호 입력" + @input="passwordAlertTextHandler" /> {{ passwordAlert }} {{ passwordAlert2 }} @@ -89,6 +97,14 @@ const emit = defineEmits(['submitComment']); + const alertTextHandler = () => { + textAlert.value = ''; + }; + + const passwordAlertTextHandler = () => { + passwordAlert2.value = ''; + }; + const handleCommentSubmit = () => { if (!$common.isNotEmpty(comment.value)) { textAlert.value = '댓글을 입력하세요';