ปรับการ fetch ข้อมูล tree

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-01 09:27:56 +07:00
parent c7ea4e0e5b
commit dd9239ac25
7 changed files with 18 additions and 12 deletions

View file

@ -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();
});