すべてのRouterLinkを新規タブで開くように
This commit is contained in:
parent
f29df07236
commit
164998823f
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue