แก้ วินัย

This commit is contained in:
setthawutttty 2024-12-26 17:18:37 +07:00
parent a7d5af4600
commit b2d86fa59d
9 changed files with 76 additions and 42 deletions

View file

@ -91,10 +91,9 @@ async function uploadFile() {
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
})
.finally(async () => {});
}
/**
@ -114,15 +113,14 @@ async function removeFile(id: string) {
await http
.delete(config.API.disciplineByIdDoc(props.type, props.id, id))
.then(() => {
success($q, "ลบไฟล์สำเร็จ");
props.fetchData();
success($q, "ลบไฟล์สำเร็จ");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
})
.finally(async () => {});
}
/**