From eedafc68911349db80ae67feb3482e697c2337fc Mon Sep 17 00:00:00 2001 From: AnandaTon <125332905+anandaAiemvong@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:36:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=AD=20api=20=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=99=E0=B8=B3=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=20/=E0=B8=A7=E0=B8=B8=E0=B8=92=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=A8=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/components/Form/Education.vue | 13 ++++++++----- .../01_exam/components/Form/Profile/Family.vue | 10 +++++----- 2 files changed, 13 insertions(+), 10 deletions(-) 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'