fix(router): allow open new tab with ctrl + click

pull/69/head
pikax 5 years ago
parent 5419abdcc6
commit 5e503013ba

@ -97,6 +97,7 @@ export function createRouter(
const currentUrl = window.location
// only intercept inbound links
if (
!e.ctrlKey &&
target !== `_blank` &&
protocol === currentUrl.protocol &&
hostname === currentUrl.hostname

Loading…
Cancel
Save