すべてのRouterLinkを新規タブで開くように

This commit is contained in:
kakkokari-gtyih 2024-06-02 19:55:04 +09:00
parent f29df07236
commit 164998823f
1 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,16 @@ provideMetadataReceiver((metadataGetter) => {
});
provideReactiveMetadata(pageMetadata);
//#region Embed Link Behavior
//
mainRouter.navHook = (path, flag): boolean => {
window.open(path, '_blank', 'noopener');
return true;
};
//#endregion
//#region Embed Style
const params = new URLSearchParams(location.search);
const embedRounded = ref(params.get('rounded') !== 'false');