fix fetch ช้อมูลรายการออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-18 16:43:51 +07:00
parent 5fb8c24263
commit f1c056fc8d
31 changed files with 69 additions and 32 deletions

View file

@ -35,6 +35,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
fetchData: {
type: Function,
default: () => {},
},
});
const commandOp = ref<ListCommand[]>([]); //
@ -208,6 +212,7 @@ function createCommand(isRedirect: boolean) {
router.push(`/command/edit/${id}`);
} else {
clearValue();
await props.fetchData(); // fetchData props
}
})
.catch((e) => {
@ -253,7 +258,7 @@ function addPersonalToCommand(isRedirect: boolean) {
router.push(`/command/edit/${id}`);
} else {
modal.value = false;
clearValue();
await props.fetchData(); // fetchData props
}
})
.catch((e) => {