diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue index ef0f20f..5a6fc80 100644 --- a/src/modules/01_exam/components/Form/Education.vue +++ b/src/modules/01_exam/components/Form/Education.vue @@ -332,10 +332,13 @@ watch(edit, (count: boolean, prevCount: boolean) => { }) onMounted(async () => { - // await fetchData() + await fetchData() // await fetchQualification() - fetcheducationLevel() + await fetcheducationLevel() }) +const fetchData = () => { + educationLevel.value = 'e4e6a4f8-39c6-467f-bd84-7650d105fc4c' +} const fetcheducationLevel = async () => { // loader.value = true; @@ -373,9 +376,9 @@ const fetchQualification = async () => { // }) } -const fetchData = async () => { - editRow.value = false -} +// const fetchData = async () => { +// editRow.value = false +// } /** * กดดูข้อมูลก่อนหน้า diff --git a/src/modules/01_exam/components/Form/Profile/Family.vue b/src/modules/01_exam/components/Form/Profile/Family.vue index aa7a401..58bb57b 100644 --- a/src/modules/01_exam/components/Form/Profile/Family.vue +++ b/src/modules/01_exam/components/Form/Profile/Family.vue @@ -323,11 +323,11 @@ const props = defineProps({ const emit = defineEmits(['update:statusEdit']) -onMounted(() => { - fetchData() - fetchprefixMom() - fetchprefixDad() - fetchprefixRelation() +onMounted(async () => { + await fetchData() + await fetchprefixMom() + await fetchprefixDad() + await fetchprefixRelation() }) const fetchData = () => { prefixRelation.value = 'e4e6a4f8-39c6-467f-bd84-7650d105fc4c'