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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
feat(context-menu): 调整关闭数据库连接位置,与关闭连接位置对齐
二丫讲梵32f865ff5296
diff --git a/apps/desktop/src/components/sidebar/TreeItem.vue b/apps/desktop/src/components/sidebar/TreeItem.vueindex 85c2bb3457..ebb76183f5 100644--- a/apps/desktop/src/components/sidebar/TreeItem.vue+++ b/apps/desktop/src/components/sidebar/TreeItem.vue@@ -3672,6 +3672,10 @@ function treeItemMenuItems(): ContextMenuItem[] {// 4. Database / Schemaif (node.type === "database" || node.type === "schema") {+ if (canCloseDatabaseConnection.value) {+ items.push({ label: t("contextMenu.closeDatabaseConnection"), action: closeDatabaseConnection, icon: Unplug });+ items.push({ label: "", separator: true });+ }items.push({ label: t("contextMenu.copyName"), action: copyName, icon: Copy, shortcut: shortcutCopyName.value });items.push({ label: "", separator: true });if (canOpenObjectBrowser.value) {@@ -3723,10 +3727,6 @@ function treeItemMenuItems(): ContextMenuItem[] {items.push({ label: t("diff.title"), action: openSchemaDiff, icon: ArrowRightLeft });items.push({ label: t("dataCompare.title"), action: openDataCompare, icon: ArrowRightLeft });items.push({ label: t("contextMenu.exportDatabase"), action: openDatabaseExport, icon: Upload });- if (canCloseDatabaseConnection.value) {- items.push({ label: "", separator: true });- items.push({ label: t("contextMenu.closeDatabaseConnection"), action: closeDatabaseConnection, icon: Unplug });- }if (canDropDatabase.value || canDropSchema.value) {items.push({ label: "", separator: true });}