Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d4327cb
authored
Aug 10, 2024
by
P2K0
Committed by
GitHub
Aug 10, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: TabsToolMore cannot be opened in a new window (#4107) (#4109)
1 parent
6c117b41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
packages/stores/src/modules/tabbar.ts
packages/stores/src/modules/tabbar.ts
View file @
4d4327c
...
@@ -271,7 +271,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
...
@@ -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'
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment