ทะเบียนประวัติ => ข้อมูลลูกจ้าง ปรับ load
This commit is contained in:
parent
ad53e6bd54
commit
9f4aeec575
2 changed files with 17 additions and 18 deletions
|
|
@ -156,9 +156,9 @@ function onSubmit() {
|
|||
const methods = isEdit.value ? "put" : "post";
|
||||
const id = isEdit.value ? employmentId.value : profileId.value;
|
||||
http[methods](config.API.employmentEmployee(id), formData)
|
||||
.then(() => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
fetchListEmployment();
|
||||
.then(async () => {
|
||||
await fetchListEmployment();
|
||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
onCloseDialog();
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue