แก้เงื่อนไขกรณียังไม่สมัคร

This commit is contained in:
Kittapath 2023-03-27 16:08:59 +07:00
parent 78520129a9
commit 8b3dea3c67

View file

@ -83,7 +83,7 @@ const stepRaw = ref<number>(1)
const tittle = ref<string>('การสอบภาค ข. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว ทดสอบ')
const candidateId = ref<string>('2223ba53-2fb2-470b-8dc1-27e5471b0331')
const loader = ref<boolean>(false)
const status = ref<string>('')
const status = ref<string>('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(() => {