P2K0
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/stores/src/modules/tabbar.ts
|
|
@ -271,7 +271,7 @@ export const useTabbarStore = defineStore('core-tabbar', { |
|
|
*/ |
|
|
*/ |
|
|
async openTabInNewWindow(tab: TabDefinition) { |
|
|
async openTabInNewWindow(tab: TabDefinition) { |
|
|
const { hash, origin } = location; |
|
|
const { hash, origin } = location; |
|
|
const path = tab.fullPath; |
|
|
const path = tab.fullPath || tab.path; |
|
|
const fullPath = path.startsWith('/') ? path : `/${path}`; |
|
|
const fullPath = path.startsWith('/') ? path : `/${path}`; |
|
|
const url = `${origin}${hash ? '/#' : ''}${fullPath}`; |
|
|
const url = `${origin}${hash ? '/#' : ''}${fullPath}`; |
|
|
openWindow(url, { target: '_blank' }); |
|
|
openWindow(url, { target: '_blank' }); |
|
|
|