Skip to content

Commit 40bb9ff

Browse files
author
MaJianWei
committed
fix: TabsToolMore 无法在新窗口打开 (#4107)
1 parent 8725a01 commit 40bb9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stores/src/modules/tabbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
271271
*/
272272
async openTabInNewWindow(tab: TabDefinition) {
273273
const { hash, origin } = location;
274-
const path = tab.fullPath;
274+
const path = tab.fullPath || tab.path;
275275
const fullPath = path.startsWith('/') ? path : `/${path}`;
276276
const url = `${origin}${hash ? '/#' : ''}${fullPath}`;
277277
openWindow(url, { target: '_blank' });

0 commit comments

Comments
 (0)