ปรับการ fetch ข้อมูล tree
This commit is contained in:
parent
c7ea4e0e5b
commit
dd9239ac25
7 changed files with 18 additions and 12 deletions
|
|
@ -141,14 +141,14 @@ function onSubmit() {
|
|||
if (actionType.value === "ADD") {
|
||||
await http
|
||||
.post(config.API.createOrgLevel(type.toLocaleLowerCase()), body)
|
||||
.then((res) => {
|
||||
.then(() => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
props.fetchDataTree();
|
||||
props.fetchDataTree(store.draftId);
|
||||
closeClear();
|
||||
hideLoader();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue