แก้ไขเมื่อกดยื่นในลาให้กลับไปหน้าหลัก
This commit is contained in:
parent
b14413eb98
commit
95381288c7
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue