댓글, 비밀번호 입력 감지 경고문구 제거
This commit is contained in:
parent
42bb7c4d55
commit
df024efdd3
@ -11,7 +11,14 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
<!-- 텍스트박스 -->
|
<!-- 텍스트박스 -->
|
||||||
<div class="w-100">
|
<div class="w-100">
|
||||||
<textarea class="form-control" placeholder="댓글 달기" rows="3" :maxlength="maxLength" v-model="comment"></textarea>
|
<textarea
|
||||||
|
class="form-control"
|
||||||
|
placeholder="댓글 달기"
|
||||||
|
rows="3"
|
||||||
|
:maxlength="maxLength"
|
||||||
|
v-model="comment"
|
||||||
|
@input="alertTextHandler"
|
||||||
|
></textarea>
|
||||||
<span v-if="commentAlert" class="invalid-feedback d-block text-start ms-2">{{ commentAlert }}</span>
|
<span v-if="commentAlert" class="invalid-feedback d-block text-start ms-2">{{ commentAlert }}</span>
|
||||||
<span v-else class="invalid-feedback d-block text-start ms-2">{{ textAlert }}</span>
|
<span v-else class="invalid-feedback d-block text-start ms-2">{{ textAlert }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -35,6 +42,7 @@
|
|||||||
class="form-control flex-grow-1"
|
class="form-control flex-grow-1"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
placeholder="비밀번호 입력"
|
placeholder="비밀번호 입력"
|
||||||
|
@input="passwordAlertTextHandler"
|
||||||
/>
|
/>
|
||||||
<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>
|
<span v-else class="invalid-feedback d-block text-start ms-2">{{ passwordAlert2 }}</span>
|
||||||
@ -89,6 +97,14 @@
|
|||||||
|
|
||||||
const emit = defineEmits(['submitComment']);
|
const emit = defineEmits(['submitComment']);
|
||||||
|
|
||||||
|
const alertTextHandler = () => {
|
||||||
|
textAlert.value = '';
|
||||||
|
};
|
||||||
|
|
||||||
|
const passwordAlertTextHandler = () => {
|
||||||
|
passwordAlert2.value = '';
|
||||||
|
};
|
||||||
|
|
||||||
const handleCommentSubmit = () => {
|
const handleCommentSubmit = () => {
|
||||||
if (!$common.isNotEmpty(comment.value)) {
|
if (!$common.isNotEmpty(comment.value)) {
|
||||||
textAlert.value = '댓글을 입력하세요';
|
textAlert.value = '댓글을 입력하세요';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user