diff --git a/src/modules/18_command/components/Step/2_ListPersons.vue b/src/modules/18_command/components/Step/2_ListPersons.vue index dbaf6909c..e538c38d5 100644 --- a/src/modules/18_command/components/Step/2_ListPersons.vue +++ b/src/modules/18_command/components/Step/2_ListPersons.vue @@ -147,195 +147,217 @@ function getCommandSalaryList(type: string) { function onSubmit() {} +onMounted(() => { + if (props.commandSysId) { + getCommandSalaryList(props.commandSysId); + } +}); + /** * ฟังก์ชันที่ต้องการนำฟังก์ชันออกไปใช้ใน Components แม่ */ defineExpose({ onSubmit, }); - -onMounted(() => { - if (props.commandSysId) { - getCommandSalaryList(props.commandSysId); - } -});