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,