diff --git a/src/modules/18_command/components/Step/1_Detail.vue b/src/modules/18_command/components/Step/1_Detail.vue index e0f20c207..10a453642 100644 --- a/src/modules/18_command/components/Step/1_Detail.vue +++ b/src/modules/18_command/components/Step/1_Detail.vue @@ -74,7 +74,9 @@ async function onSubmit() { showLoader(); await http .put(config.API.commandAction(commandId.value, "tab1"), formData) - .then(() => {}) + .then(() => { + fetchData(); + }) .catch((err) => { messageError($q, err); }) @@ -87,8 +89,8 @@ async function onSubmit() { /** * ทำงานเมื่อ Components ถูกเรียกใช้งาน */ -onMounted(() => { - fetchData(); +onMounted(async () => { + await fetchData(); }); /** @@ -188,7 +190,18 @@ defineExpose({