fix(registry): handle router.push based on isLeave status

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-03-26 09:49:02 +07:00
parent beef941dfd
commit ec5f113922

View file

@ -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");
}
}
}