เปิด commend
This commit is contained in:
parent
d7a6c8d9bc
commit
b0390d2e72
1 changed files with 14 additions and 14 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue