From 014bac08ea55519e413749c293d1428e70e600f4 Mon Sep 17 00:00:00 2001 From: Ethanfly Date: Mon, 29 Dec 2025 13:56:50 +0800 Subject: [PATCH] Add functionality to reset selected host on tab activation --- src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.js b/src/App.js index d2e7994..26baa0d 100644 --- a/src/App.js +++ b/src/App.js @@ -87,6 +87,7 @@ function App() { setActiveTabs((prev) => [...prev, newTab]); setActiveTabId(tabId); setShowHostManager(false); + setSelectedHost(null); // 关闭右侧编辑面板 }, []); // 关闭标签页