แก้ วินัย
This commit is contained in:
parent
a7d5af4600
commit
b2d86fa59d
9 changed files with 76 additions and 42 deletions
|
|
@ -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 () => {});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue