fix(frontend): ctrlキーを押しながらクリックしても新しいタブで開かない問題を修正

This commit is contained in:
kakkokari-gtyih 2025-08-24 19:11:05 +09:00
parent bd0730e5e8
commit 99f375b921
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ function nav(ev: MouseEvent) {
return openWindow();
}
if (ev.ctrlKey) {
window.open(props.to, '_blank', 'noopener');
return;
}
router.pushByPath(props.to, ev.ctrlKey ? 'forcePage' : null);
}
</script>