ทะเบียนประวัติ => ข้อมูลลูกจ้าง ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-19 09:40:57 +07:00
parent ad53e6bd54
commit 9f4aeec575
2 changed files with 17 additions and 18 deletions

View file

@ -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) => {