From 8b3dea3c6762c64d3bf1eaf169d68e5c93b45158 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 27 Mar 2023 16:08:59 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=80=E0=B8=87?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99=E0=B9=84=E0=B8=82=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=A2=E0=B8=B1=E0=B8=87=E0=B9=84?= =?UTF-8?q?=E0=B8=A1=E0=B9=88=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/views/ExamDetail.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(() => {