fix(registry): handle router.push based on isLeave status
This commit is contained in:
parent
beef941dfd
commit
ec5f113922
1 changed files with 6 additions and 2 deletions
|
|
@ -806,9 +806,13 @@ function handleBackNavigation() {
|
|||
router.go(-1);
|
||||
} else {
|
||||
if (empType.value === "") {
|
||||
router.push("/registry-officer");
|
||||
storeRegistry.isLeave
|
||||
? router.push("/registry-retire-officer")
|
||||
: router.push("/registry-officer");
|
||||
} else if (empType.value === "-employee") {
|
||||
router.push("/registry-employee");
|
||||
storeRegistry.isLeave
|
||||
? router.push("/registry-retire-employee")
|
||||
: router.push("/registry-employee");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue