เปิดคอมเม้น

This commit is contained in:
setthawutttty 2024-12-17 17:06:21 +07:00
parent 8e52ef1fa3
commit 40ca94ae80

View file

@ -15,21 +15,19 @@ const { showLoader, hideLoader, success, messageError } = mixin;
/** บันทึกข้อมูล */ /** บันทึกข้อมูล */
async function onSubmit(data: any) { async function onSubmit(data: any) {
console.log(data); showLoader();
http
// showLoader(); .post(config.API.complaintAdd(), data)
// http .then((res) => {
// .post(config.API.complaintAdd(), data) success($q, "บันทึกข้อมูลสำเร็จ");
// .then((res) => { router.push(`/discipline/complaints/${res.data.result}`);
// success($q, ""); })
// router.push(`/discipline/complaints/${res.data.result}`); .catch((e) => {
// }) messageError($q, e);
// .catch((e) => { })
// messageError($q, e); .finally(async () => {
// }) hideLoader();
// .finally(async () => { });
// hideLoader();
// });
} }
</script> </script>