อัตรากำลังลูกจ้างประจำ ฯ => fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-16 11:12:06 +07:00
parent df481043b1
commit 722794a27e
5 changed files with 49 additions and 29 deletions

View file

@ -4,7 +4,7 @@ import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
/**
/**
* importType
*/
import type { QTableProps } from "quasar";
@ -279,10 +279,10 @@ function onSubmit() {
showLoader();
http
.post(config.API.orgProfileEmp, body)
.then(() => {
props.fetchDataTable?.(store.treeId, store.level, false);
props.getSummary();
success($q, "บันทึกข้อมูลสำเร็จ");
.then(async () => {
await props.fetchDataTable?.(store.treeId, store.level, false);
await props.getSummary();
await success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((err) => {
messageError($q, err);