diff --git a/frontend/src/layout/components/Tabs/index.vue b/frontend/src/layout/components/Tabs/index.vue index 4bc918336..4a88c83dc 100644 --- a/frontend/src/layout/components/Tabs/index.vue +++ b/frontend/src/layout/components/Tabs/index.vue @@ -49,6 +49,9 @@ const tabChange = (tabPath) => { const closeTab = (tabPath) => { const lastTabPath = tabsStore.removeTab(tabPath); + if (tabPath !== tabsStore.activeTabPath) { + return; + } if (lastTabPath) { tabChange(lastTabPath); }