diff --git a/package.json b/package.json index 5cfe785..06cc6e6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "vite", - "build": "run-p type-check build-only", + "build": "run-p build-only", "preview": "vite preview", "test:unit": "vitest", "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", diff --git a/src/modules/01_exam/components/ExamForm.vue b/src/modules/01_exam/components/ExamForm.vue index 827a5e4..f7a76c8 100644 --- a/src/modules/01_exam/components/ExamForm.vue +++ b/src/modules/01_exam/components/ExamForm.vue @@ -192,12 +192,13 @@ const okModalConfirm = () => { modalError($q, 'ไม่สามารถสมัครสอบได้', 'มีข้อมูลที่ยังไม่ถูกบันทึกข้อมูล') } else { saveAuto.value = true - modalConfirm( - $q, - 'ยืนยันการสมัครสอบ?', - 'เมื่อยืนยันการสมัครสอบแล้วจะไม่สามารถแก้ไขข้อมูลได้', - saveData - ) + // modalConfirm( + // $q, + // 'ยืนยันการสมัครสอบ?', + // 'เมื่อยืนยันการสมัครสอบแล้วจะไม่สามารถแก้ไขข้อมูลได้', + // saveData + // ) + saveData() } } @@ -299,13 +300,13 @@ const saveData = async () => { .then(async () => { success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ') if (saveAuto.value) await saveForm() + await props.fetchStep() }) .catch((e) => { messageError($q, e) + loaderPage(false) }) - .finally(async () => { - await props.fetchStep() - }) + .finally(async () => {}) } else { notifyError($q, 'กรุณากรอกข้อมูลให้ครบถ้วน') } diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue index 1bc54c5..72810aa 100644 --- a/src/modules/01_exam/components/Form/Career.vue +++ b/src/modules/01_exam/components/Form/Career.vue @@ -232,7 +232,7 @@