From 28362078501e31e0f68e06efa11e9f385260340d Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:54:16 +0800 Subject: [PATCH] fix: Fix the issue of abnormal redirection after deleting a tab (#10774) Refs #10767 --- frontend/src/layout/components/Tabs/index.vue | 3 +++ 1 file changed, 3 insertions(+) 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); }