From 1cd9d5c64d3fb4f1a7100e2d426a5d85c44954cb Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:11:09 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E3=83=87=E3=83=83=E3=82=ADUI?= =?UTF-8?q?=E3=81=A7matchAll=E3=81=AB=E5=85=A5=E3=81=A3=E3=81=9F=E3=82=89?= =?UTF-8?q?=E6=96=B0=E3=81=97=E3=81=84=E3=82=BF=E3=83=96=E3=81=A7=E9=96=8B?= =?UTF-8?q?=E3=81=8F=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/ui/deck.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index bdb62dca15..14a08f50ba 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -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) { - os.pageWindow(path); + const res = mainRouter.resolve(path); + if (res?.route.path === '/:(*)') { + window.open(path, '_blank', 'noopener'); + } else { + os.pageWindow(path); + } return true; } return false;