diff --git a/packages/stores/src/modules/tabbar.ts b/packages/stores/src/modules/tabbar.ts index e51a995046f..c385ae97dd3 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' });