From f0941c083e407dbe0268d13bc136fbaa3b9a527a Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Tue, 5 May 2026 12:07:02 +0800 Subject: [PATCH] feat: update tab execution logic to handle multiple tabs with SQL queries --- src/App.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index b0906bdb2..7c99db272 100644 --- a/src/App.vue +++ b/src/App.vue @@ -211,15 +211,17 @@ function initApp() { } async function reconnectRestoredTabs() { + if (isDesktop) return; const connectionIds = new Set(queryStore.tabs.map(t => t.connectionId).filter(Boolean)); for (const id of connectionIds) { try { await connectionStore.ensureConnected(id); } catch {} } - const tab = queryStore.tabs.find(t => t.id === queryStore.activeTabId); - if (tab && tab.mode === "data" && tab.tableMeta) { - queryStore.executeCurrentTab(); + for (const tab of queryStore.tabs) { + if (tab.mode === "data" && tab.tableMeta && tab.sql) { + queryStore.executeTabSql(tab.id, tab.sql).catch(() => {}); + } } }