Merge branch 'develop' of github.com:Frappet/BMA-EHR-USER into develop

This commit is contained in:
Warunee Tamkoo 2024-08-14 10:09:42 +07:00
commit 874e6bc216
2 changed files with 719 additions and 720 deletions

View file

@ -130,17 +130,17 @@ function deleteFile(fileName: string) {
showLoader();
http
.delete(config.API.file("ไฟล์เอกสาร", "KPI", id.value) + `/${fileName}`)
.catch((e) => {
messageError($q, e);
})
.finally(() => {
getData();
.then((res) => {
setTimeout(() => {
getData();
success($q, `ลบไฟล์สำเร็จ`);
hideLoader();
}, 500);
});
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {});
});
}