Преглед изворни кода

fix: TabsToolMore cannot be opened in a new window (#4107) (#4109)

P2K0 пре 7 месеци
родитељ
комит
4d4327cb25
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/stores/src/modules/tabbar.ts

+ 1 - 1
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' });