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

This commit is contained in:
kakkokari-gtyih 2024-06-02 19:55:04 +09:00
parent f29df07236
commit 164998823f

View file

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