diff --git a/src/modules/01_exam/components/ExamForm.vue b/src/modules/01_exam/components/ExamForm.vue index b207038..7c3c3ea 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) => {