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 862bbd83
authored
Oct 23, 2024
by
pingsanddoss
Committed by
GitHub
Oct 23, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fix the error of closing the default analysis page on the tab page (#4720)
1 parent
23768ea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
packages/stores/src/modules/tabbar.ts
packages/stores/src/modules/tabbar.ts
View file @
862bbd8
...
@@ -245,11 +245,11 @@ export const useTabbarStore = defineStore('core-tabbar', {
...
@@ -245,11 +245,11 @@ export const useTabbarStore = defineStore('core-tabbar', {
// 下一个tab存在,跳转到下一个
// 下一个tab存在,跳转到下一个
if
(
after
)
{
if
(
after
)
{
this
.
_close
(
currentRoute
.
value
);
this
.
_close
(
tab
);
await
this
.
_goToTab
(
after
,
router
);
await
this
.
_goToTab
(
after
,
router
);
// 上一个tab存在,跳转到上一个
// 上一个tab存在,跳转到上一个
}
else
if
(
before
)
{
}
else
if
(
before
)
{
this
.
_close
(
currentRoute
.
value
);
this
.
_close
(
tab
);
await
this
.
_goToTab
(
before
,
router
);
await
this
.
_goToTab
(
before
,
router
);
}
else
{
}
else
{
console
.
error
(
'Failed to close the tab; only one tab remains open.'
);
console
.
error
(
'Failed to close the tab; only one tab remains open.'
);
...
...
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