เเก้ไขส่งข้อมูล ช้ำ

This commit is contained in:
Net 2024-02-13 16:40:37 +07:00
parent bb1a67bddc
commit a6f76328db

View file

@ -1201,7 +1201,9 @@ const clickSave = async () => {
// * // *
// */ // */
const saveData = async () => { const saveData = async () => {
formData.leaveYear = (await Number(inputDateLaeaveYear.value)) - 543;
const sum = Number(numLeave.value) + Number(numUsedLeave.value); const sum = Number(numLeave.value) + Number(numUsedLeave.value);
console.log(formData.leaveYear);
if (profileId.value) { if (profileId.value) {
showLoader(); showLoader();
@ -1216,6 +1218,7 @@ const saveData = async () => {
}) })
.then((res) => { .then((res) => {
success($q, "บันทึกข้อมูลสำเร็จ"); success($q, "บันทึกข้อมูลสำเร็จ");
modalAdd.value = false; modalAdd.value = false;
}) })
.catch((e) => { .catch((e) => {