fix(frontend): ctrlキーを押しながらクリックしても新しいタブで開かない問題を修正
This commit is contained in:
parent
bd0730e5e8
commit
99f375b921
|
@ -99,6 +99,11 @@ function nav(ev: MouseEvent) {
|
||||||
return openWindow();
|
return openWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ev.ctrlKey) {
|
||||||
|
window.open(props.to, '_blank', 'noopener');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
router.pushByPath(props.to, ev.ctrlKey ? 'forcePage' : null);
|
router.pushByPath(props.to, ev.ctrlKey ? 'forcePage' : null);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue