แก้ไขเมื่อกดยื่นในลาให้กลับไปหน้าหลัก

This commit is contained in:
AnandaTon 2024-01-16 13:48:25 +07:00
parent b14413eb98
commit 95381288c7

View file

@ -254,13 +254,15 @@ function onConfirm(id: string) {
await http await http
.put(config.API.leaveUserSendId(personalId.value), { reason: "" }) .put(config.API.leaveUserSendId(personalId.value), { reason: "" })
.then(() => { .then(() => {
router.push("/leave");
success($q, "ยื่นใบลาสำเร็จ"); success($q, "ยื่นใบลาสำเร็จ");
// router.push("/leave");
}) })
.catch((e: any) => { .catch((e: any) => {
messageError($q, e); messageError($q, e);
}) })
.finally(() => { .finally(() => {
router.push("/leave");
fetchDataDetail(personalId.value);
hideLoader(); hideLoader();
}); });
}, },