From 4d4327cb252e518b580c8a13bee8780804bfb8cd Mon Sep 17 00:00:00 2001 From: P2K0 <39264625+P2K0@users.noreply.github.com> Date: Sat, 10 Aug 2024 16:31:09 +0800 Subject: [PATCH] fix: TabsToolMore cannot be opened in a new window (#4107) (#4109) --- packages/stores/src/modules/tabbar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stores/src/modules/tabbar.ts b/packages/stores/src/modules/tabbar.ts index e51a9950..c385ae97 100644 --- a/packages/stores/src/modules/tabbar.ts +++ b/packages/stores/src/modules/tabbar.ts @@ -271,7 +271,7 @@ export const useTabbarStore = defineStore('core-tabbar', { */ async openTabInNewWindow(tab: TabDefinition) { const { hash, origin } = location; - const path = tab.fullPath; + const path = tab.fullPath || tab.path; const fullPath = path.startsWith('/') ? path : `/${path}`; const url = `${origin}${hash ? '/#' : ''}${fullPath}`; openWindow(url, { target: '_blank' });