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
|
|
@ -196,9 +196,9 @@ function onClickHistory() {
|
|||
*/
|
||||
function onClickViewDetail(id: string) {
|
||||
if (empType.value === "officer") {
|
||||
router.push(`/registry-officer/${id}`);
|
||||
window.open(`/registry-officer/${id}`, "_blank");
|
||||
} else {
|
||||
router.push(`/registry-employee/${id}`);
|
||||
window.open(`/registry-employee/${id}`, "_blank");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue