Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(objects): retain active tab on objects right panel when switching tables

ptma0a37706a9c24
diff --git a/apps/desktop/src/components/objects/ObjectBrowser.vue b/apps/desktop/src/components/objects/ObjectBrowser.vue
index 7eba9b0ec0..cfadfb7a00 100644
--- a/apps/desktop/src/components/objects/ObjectBrowser.vue
+++ b/apps/desktop/src/components/objects/ObjectBrowser.vue
@@ -931,8 +931,8 @@ async function openTableInfo(row: ObjectBrowserRow, initialTab?: TableInfoTab) {
tableForeignKeys.value = [];
tableTriggers.value = [];
tableInfoSearchQuery.value = "";
- // Determine initial tab: explicit request > first available > ddl
- const firstTab = initialTab ?? tableInfoTabs.value[0]?.id ?? "ddl";
+ // Determine initial tab: explicit request > previously activated
+ const firstTab = initialTab ?? tableInfoTab.value;
await selectTableInfoTab(firstTab);
}