โครงสร้างอัตรากำลัง => fetch Tree

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-19 11:46:00 +07:00
parent 249e47e72b
commit 5a1dc5512c
2 changed files with 8 additions and 1 deletions

View file

@ -102,7 +102,7 @@ function onSubmit() {
store.draftId = res.data.result.id;
store.statusView = "list";
success($q, "บันทึกข้อมูลสำเร็จ");
// props.fetchActive?.();
props.fetchActive?.();
})
.catch((err) => {
messageError($q, err);

View file

@ -209,6 +209,13 @@ watch(
}
}
);
watch(
() => store.draftId,
() => {
store.draftId && fetchDataTree(store.draftId?.toString());
}
);
</script>
<template>