no message

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-28 13:14:25 +07:00
parent 6d1388f434
commit a2a4d2892d

View file

@ -130,8 +130,6 @@ function onSubmit() {
dialogConfirm($q, async () => {
try {
showLoader();
console.log(rows.value);
const formData = rows.value.map((e: any) => ({
id: e.id,
point: e.point,
@ -146,9 +144,8 @@ function onSubmit() {
: numpage.value === 3
? config.API.kpiAchievementPoint("special")
: "";
await http.post(url, formData).then((res) => {
props.fetchList();
});
await http.post(url, formData);
props.fetchList();
success($q, "บันทึกข้อมูลสำเร็จ");
} catch (err) {
messageError($q, err);