From 472de80c3e6c26f9b05dd8ae40133e8bb134fe01 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 20 Nov 2025 09:32:34 +0700 Subject: [PATCH] fix: showEducationName --- src/modules/01_exam/components/Form/Education.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue index dd90a17..0986e0f 100644 --- a/src/modules/01_exam/components/Form/Education.vue +++ b/src/modules/01_exam/components/Form/Education.vue @@ -252,14 +252,16 @@ watch(defaultEducation, async (count: Education, prevCount: Education) => { onMounted(async () => { await fetchData() + await checkInputName() }) const fetchData = async () => { loaderPage(true) await http .get(config.API.candidateEducation(examId.value, positionId.value)) - .then((res) => { + .then(async (res) => { const data = res.data.result + defaultEducation.value.educationLevelExamId = data.educationLevelExamId defaultEducation.value.educationName = data.educationName defaultEducation.value.educationMajor = data.educationMajor @@ -269,7 +271,7 @@ const fetchData = async () => { data.educationEndDate == null ? null : new Date(data.educationEndDate) defaultEducation.value.educationScores = data.educationScores defaultEducation.value.educationLevelHighId = data.educationLevelHighId - checkInputName() + await checkInputName() }) .catch((e) => { // messageError($q, e) @@ -279,7 +281,7 @@ const fetchData = async () => { }) } -const checkInputName = () => { +const checkInputName = async () => { showEducationName.value = props.educationLevelOptions.filter( (x) =>