diff --git a/src/modules/01_exam/views/ExamDetail.vue b/src/modules/01_exam/views/ExamDetail.vue index 7c51405..a700b69 100644 --- a/src/modules/01_exam/views/ExamDetail.vue +++ b/src/modules/01_exam/views/ExamDetail.vue @@ -83,7 +83,7 @@ const stepRaw = ref(1) const tittle = ref('การสอบภาค ข. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว ทดสอบ') const candidateId = ref('2223ba53-2fb2-470b-8dc1-27e5471b0331') const loader = ref(false) -const status = ref('') +const status = ref('register') onMounted(async () => { await candidateCheck() @@ -96,7 +96,12 @@ const candidateCheck = async () => { .then(async (res) => { const data = res.data.result store.consend = data - if (store.consend == true) await fetchStep() + if (store.consend == true) { + await fetchStep() + } else { + stepRaw.value = 2 + step.value = 2 + } }) .catch(() => {}) .finally(() => {