diff --git a/src/modules/01_exam/components/ExamForm.vue b/src/modules/01_exam/components/ExamForm.vue index b207038..23bc878 100644 --- a/src/modules/01_exam/components/ExamForm.vue +++ b/src/modules/01_exam/components/ExamForm.vue @@ -363,10 +363,9 @@ const saveData = async () => { .then(async () => { if (!props.stepPayment) { secondDialog.value = true + } else { + success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ') } - // else { - // success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ') - // } await saveForm() await props.fetchStep() dialog.value = false @@ -434,7 +433,7 @@ const saveData = async () => { contacttel: defaultContact.value.contacttel }) .then(async () => { - success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ') + !secondDialog.value && success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ') await props.fetchStep() }) .catch((e) => { @@ -449,6 +448,7 @@ async function onSubmit() { saveAuto.value = false await saveData() await http.post(config.API.registerConfirm(examId.value, positionId.value)) + success($q, 'ส่งใบสมัครสำเร็จ') await props.fetchStep() // do something } catch (error) {