Commit 4d4327cb by P2K0 Committed by GitHub

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

1 parent 6c117b41
......@@ -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' });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!