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
fix(tunnels): restore profiles after settings navigation
t8y273f6801df9fc
diff --git a/apps/desktop/src/components/connection/TunnelProfileManager.vue b/apps/desktop/src/components/connection/TunnelProfileManager.vueindex 6f8aa7c419..eeb9260e93 100644--- a/apps/desktop/src/components/connection/TunnelProfileManager.vue+++ b/apps/desktop/src/components/connection/TunnelProfileManager.vue@@ -20,6 +20,7 @@ const store = useTunnelProfileStore();const draft = ref<TunnelProfile[]>([]);const selectedId = ref<string | null>(null);const isSaving = ref(false);+const hasInitializedDraft = ref(false);function cloneProfiles(profiles: TunnelProfile[]): TunnelProfile[] {return JSON.parse(JSON.stringify(profiles)) as TunnelProfile[];@@ -38,7 +39,12 @@ void store.init();watch(() => store.isLoaded,(loaded) => {- if (loaded && !isDirty.value) resetDraft();+ // A remounted settings panel starts with an empty draft even when Pinia+ // already contains profiles, so the initial empty state is not a user edit.+ if (loaded && (!hasInitializedDraft.value || !isDirty.value)) {+ resetDraft();+ hasInitializedDraft.value = true;+ }},{ immediate: true },);