เพิ่มหน่วงเวลา

This commit is contained in:
STW_TTTY\stwtt 2024-08-13 09:39:28 +07:00
parent d8c99a9554
commit 4f21150e66

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