แก้เงื่อนไขกรณียังไม่สมัคร
This commit is contained in:
parent
78520129a9
commit
8b3dea3c67
1 changed files with 7 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ const stepRaw = ref<number>(1)
|
||||||
const tittle = ref<string>('การสอบภาค ข. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว ทดสอบ')
|
const tittle = ref<string>('การสอบภาค ข. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว ทดสอบ')
|
||||||
const candidateId = ref<string>('2223ba53-2fb2-470b-8dc1-27e5471b0331')
|
const candidateId = ref<string>('2223ba53-2fb2-470b-8dc1-27e5471b0331')
|
||||||
const loader = ref<boolean>(false)
|
const loader = ref<boolean>(false)
|
||||||
const status = ref<string>('')
|
const status = ref<string>('register')
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await candidateCheck()
|
await candidateCheck()
|
||||||
|
|
@ -96,7 +96,12 @@ const candidateCheck = async () => {
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result
|
const data = res.data.result
|
||||||
store.consend = data
|
store.consend = data
|
||||||
if (store.consend == true) await fetchStep()
|
if (store.consend == true) {
|
||||||
|
await fetchStep()
|
||||||
|
} else {
|
||||||
|
stepRaw.value = 2
|
||||||
|
step.value = 2
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue