From bc71932976bd35763b5420ee8df47860cf7c760c Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 2 Oct 2023 11:42:21 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6?= =?UTF-8?q?=E0=B8=81=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5?= =?UTF-8?q?=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84=E0=B8=A3=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/01_exam/components/ExamForm.vue | 19 +++---- .../01_exam/components/Form/Career.vue | 53 ++++++++++++++++--- 3 files changed, 58 insertions(+), 16 deletions(-) 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 @@