เปิด commend

This commit is contained in:
STW_TTTY\stwtt 2024-09-30 11:05:00 +07:00
parent d7a6c8d9bc
commit b0390d2e72

View file

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