From 84ae93aaa804df8b3763d8598c054ebe51b3eaec Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 17 Sep 2026 00:57:42 +0800 Subject: [PATCH] fix(connection): hide production protection for plugin connections --- .../components/connection/ConnectionDialog.vue | 7 ++++--- .../connectionDialogProductionSection.spec.ts | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 apps/desktop/src/lib/__tests__/connection/connectionDialogProductionSection.spec.ts diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index cfc1c26b03..46fb68a8a8 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -4110,8 +4110,9 @@ function connectionConfigForSubmit(id: string, generatedName = "", validatePlugi config.keepalive_interval_secs = form.value.keepalive_interval_secs; config.read_only = form.value.read_only; config.save_password = form.value.save_password; - config.is_production = form.value.is_production; - config.production_databases = form.value.production_databases; + // 生产保护只拦截 SQL/数据编辑路径,插件连接走不到;表单已隐藏该区块,提交时清掉历史残留标志。 + config.is_production = false; + config.production_databases = []; } else { config = { ...formValueForSubmit(), id } as LegacyConnectionConfig; } @@ -9027,7 +9028,7 @@ function openExternalUrl(url: string) {
-