KPI ==> ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-27 15:28:06 +07:00
parent 70d0975463
commit 6797177b01
6 changed files with 91 additions and 188 deletions

View file

@ -142,9 +142,9 @@ function onDelete(id: string) {
showLoader();
http
.delete(config.API.kpiAchievementDevelop + `/${id}`)
.then((res) => {
success($q, "ลบข้อมูลสำเร็จ");
getDevelop();
.then(async () => {
await getDevelop();
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);