From b0390d2e7281fd43f7489938d6e4a10f5b4656e1 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 30 Sep 2024 11:05:00 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=B4=E0=B8=94=20commend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/07_appealComplain/views/Add.vue | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/modules/07_appealComplain/views/Add.vue b/src/modules/07_appealComplain/views/Add.vue index eea7d4d..7fe459d 100644 --- a/src/modules/07_appealComplain/views/Add.vue +++ b/src/modules/07_appealComplain/views/Add.vue @@ -67,20 +67,20 @@ function onSubmit(data: FormDataType) { } formData.append("oc", data.oc); formData.append("position", data.position); - // showLoader(); - // http - // .post(config.API.appealAdd(), formData) - // .then((res) => { - // /** รอรับ id จาก response */ - // router.push(`/appeal-complain/${res.data.result}`); - // success($q, "บันทึกข้อมูลสำเร็จ"); - // }) - // .catch((e) => { - // messageError($q, e); - // }) - // .finally(async () => { - // hideLoader(); - // }); + showLoader(); + http + .post(config.API.appealAdd(), formData) + .then((res) => { + /** รอรับ id จาก response */ + router.push(`/appeal-complain/${res.data.result}`); + success($q, "บันทึกข้อมูลสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + hideLoader(); + }); } onMounted(() => {