This commit is contained in:
dap
2024-08-10 18:38:55 +08:00
3 changed files with 7 additions and 6 deletions

View File

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