fix(registry): use window.open instead of router.push
This commit is contained in:
parent
6b0d3b9887
commit
4af1421770
4 changed files with 22 additions and 7 deletions
|
|
@ -269,14 +269,15 @@ async function fetchProfile(id: string, avatarName: string) {
|
|||
}
|
||||
|
||||
function redirecToRegistry() {
|
||||
router.push(
|
||||
window.open(
|
||||
`/registry-${
|
||||
employeeClass.value.toLocaleLowerCase() === "perm"
|
||||
? "employee"
|
||||
: employeeClass.value.toLocaleLowerCase() === "temp"
|
||||
? "temp"
|
||||
: "officer"
|
||||
}/${props.id}`
|
||||
}/${props.id}`,
|
||||
"_blank"
|
||||
);
|
||||
modal.value = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue