Merge branch 'board-comment-2' of http://192.168.0.251:3000/localnet/localhost-front into board-comment-2
This commit is contained in:
commit
f5911247fb
@ -37,6 +37,7 @@
|
|||||||
placeholder="비밀번호 입력"
|
placeholder="비밀번호 입력"
|
||||||
/>
|
/>
|
||||||
<span v-if="passwordAlert" class="invalid-feedback d-block text-start ms-2">{{ passwordAlert }}</span>
|
<span v-if="passwordAlert" class="invalid-feedback d-block text-start ms-2">{{ passwordAlert }}</span>
|
||||||
|
<span v-else class="invalid-feedback d-block text-start ms-2">{{ passwordAlert2 }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -76,6 +77,7 @@
|
|||||||
const password = ref('');
|
const password = ref('');
|
||||||
const isCheck = ref(props.unknown);
|
const isCheck = ref(props.unknown);
|
||||||
const textAlert = ref('');
|
const textAlert = ref('');
|
||||||
|
const passwordAlert2 = ref('');
|
||||||
|
|
||||||
const emit = defineEmits(['submitComment']);
|
const emit = defineEmits(['submitComment']);
|
||||||
const LOCBRDTYP = isCheck.value ? '300102' : null;
|
const LOCBRDTYP = isCheck.value ? '300102' : null;
|
||||||
@ -86,6 +88,12 @@
|
|||||||
} else {
|
} else {
|
||||||
textAlert.value = '';
|
textAlert.value = '';
|
||||||
}
|
}
|
||||||
|
if (isCheck.value && !$common.isNotEmpty(password.value)) {
|
||||||
|
passwordAlert2.value = '비밀번호를 입력하세요';
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
passwordAlert2.value = '';
|
||||||
|
}
|
||||||
|
|
||||||
emit('submitComment', {
|
emit('submitComment', {
|
||||||
comment: comment.value,
|
comment: comment.value,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user