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

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
.put(config.API.leaveUserSendId(personalId.value), { reason: "" })
.then(() => {
router.push("/leave");
success($q, "ยื่นใบลาสำเร็จ");
// router.push("/leave");
})
.catch((e: any) => {
messageError($q, e);
})
.finally(() => {
router.push("/leave");
fetchDataDetail(personalId.value);
hideLoader();
});
},