From 2a55574646b6da35906c49a44b504129ed2f2a3d Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Fri, 28 Feb 2025 14:30:19 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=EB=8C=93=EA=B8=80=20=EC=9D=B5?= =?UTF-8?q?=EB=AA=85=EC=9D=BC=EB=95=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardCommentArea.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index 6cf3f00..29b7267 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -37,6 +37,7 @@ placeholder="비밀번호 입력" /> {{ passwordAlert }} + {{ passwordAlert2 }} @@ -76,6 +77,7 @@ const password = ref(''); const isCheck = ref(props.unknown); const textAlert = ref(''); + const passwordAlert2 = ref(''); const emit = defineEmits(['submitComment']); const LOCBRDTYP = isCheck.value ? '300102' : null; @@ -86,6 +88,12 @@ } else { textAlert.value = ''; } + if (isCheck.value && !$common.isNotEmpty(password.value)) { + passwordAlert2.value = '비밀번호를 입력하세요'; + return false; + } else { + passwordAlert2.value = ''; + } emit('submitComment', { comment: comment.value,