diff --git a/src/modules/01_exam/components/Form/Contact.vue b/src/modules/01_exam/components/Form/Contact.vue index 432b230..43fa30d 100644 --- a/src/modules/01_exam/components/Form/Contact.vue +++ b/src/modules/01_exam/components/Form/Contact.vue @@ -100,7 +100,7 @@ :rules="[ (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', (val) => - (val.length >= 9 && val.length <= 10 && val.startsWith('0')) || + (val.length >= 10 && val.length <= 10 && val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง' ]" type="tel" diff --git a/src/modules/01_exam/components/Form/Information.vue b/src/modules/01_exam/components/Form/Information.vue index 3f01f82..3bd9c1a 100644 --- a/src/modules/01_exam/components/Form/Information.vue +++ b/src/modules/01_exam/components/Form/Information.vue @@ -264,7 +264,7 @@ :rules="[ (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', (val) => - (val.length >= 9 && val.length <= 10 && val.startsWith('0')) || + (val.length >= 10 && val.length <= 10 && val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง' ]" :counter="isStatusRegister ? true : false"