From 1f4b7b357701e858f142f7f2d59a5cc9898bc5af Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 18 Oct 2024 17:19:56 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/18_command/components/Step/1_Detail.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/18_command/components/Step/1_Detail.vue b/src/modules/18_command/components/Step/1_Detail.vue index 65a057ca6..4ade2a325 100644 --- a/src/modules/18_command/components/Step/1_Detail.vue +++ b/src/modules/18_command/components/Step/1_Detail.vue @@ -88,7 +88,9 @@ async function onSubmit() { /** * ทำงานเมื่อ Components ถูกเรียกใช้งาน */ -onMounted(() => { +onMounted(async () => { + await fetchCheckIdofficer(); + formData.commandNo = props.formCommandList.commandNo; formData.commandYear = props.formCommandList.commandYear; formData.detailHeader = props.formCommandList.detailHeader; @@ -100,7 +102,6 @@ onMounted(() => { formData.isBangkok = !isIdofficer.value ? null : props.formCommandList.isBangkok; - fetchCheckIdofficer(); });