fix: ลบ rulse

This commit is contained in:
setthawutttty 2025-07-21 13:20:54 +07:00
parent 21ffca18bf
commit d80934cf69
3 changed files with 1 additions and 8 deletions

View file

@ -161,10 +161,7 @@ onMounted(() => {
class="col-xs-12 col-sm-12 inputgreen" class="col-xs-12 col-sm-12 inputgreen"
outlined outlined
dense dense
lazy-rules
hide-bottom-space
accept=".pdf" accept=".pdf"
:rules="[(val: string) => !!val || 'กรุณาเลือกไฟล์เอกสารเพิ่มเติม']"
label="เอกสารเพิ่มเติม" label="เอกสารเพิ่มเติม"
> >
<template v-slot:prepend> <template v-slot:prepend>

View file

@ -470,10 +470,7 @@ onMounted(async () => {
class="col-xs-12 col-sm-12 inputgreen" class="col-xs-12 col-sm-12 inputgreen"
outlined outlined
dense dense
lazy-rules
hide-bottom-space
accept=".pdf" accept=".pdf"
:rules="[(val: string) => !!val || 'กรุณาเลือกเอกสารเพิ่มเติม']"
label="เอกสารเพิ่มเติม" label="เอกสารเพิ่มเติม"
> >
<template v-slot:prepend> <template v-slot:prepend>

View file

@ -176,8 +176,7 @@ function saveForm() {
suggestFriendsReason.value == "")) || suggestFriendsReason.value == "")) ||
futureWork.value.length === 0 || futureWork.value.length === 0 ||
(futureWork.value === 1 && (futureWork.value === 1 &&
(futureWorkReason.value == null || futureWorkReason.value == "")) || (futureWorkReason.value == null || futureWorkReason.value == ""))
suggestion.value.length < 1
) { ) {
hasError = true; hasError = true;
} else { } else {