mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-12 10:04:39 +08:00
fix: Fix the issue of abnormal redirection after deleting a tab (#10774)
Refs #10767
This commit is contained in:
parent
4253b48bba
commit
2836207850
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ const tabChange = (tabPath) => {
|
|||
|
||||
const closeTab = (tabPath) => {
|
||||
const lastTabPath = tabsStore.removeTab(tabPath);
|
||||
if (tabPath !== tabsStore.activeTabPath) {
|
||||
return;
|
||||
}
|
||||
if (lastTabPath) {
|
||||
tabChange(lastTabPath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue