fix(frontend): デッキUIでmatchAllに入ったら新しいタブで開くように

This commit is contained in:
kakkokari-gtyih 2024-04-29 21:11:09 +09:00
parent e2ff5f58b2
commit 1cd9d5c64d
1 changed files with 6 additions and 1 deletions

View File

@ -138,7 +138,12 @@ mainRouter.navHook = (path, flag): boolean => {
if (flag === 'forcePage') return false;
const noMainColumn = !deckStore.state.columns.some(x => x.type === 'main');
if (deckStore.state.navWindow || noMainColumn) {
const res = mainRouter.resolve(path);
if (res?.route.path === '/:(*)') {
window.open(path, '_blank', 'noopener');
} else {
os.pageWindow(path);
}
return true;
}
return false;