From 9e87e30f645e628bf39dce5e55f62f1a7de6e6de Mon Sep 17 00:00:00 2001 From: dailer Date: Wed, 20 Oct 2021 11:00:56 +0800 Subject: [PATCH] =?UTF-8?q?BI-95685=20fix:=20=E5=B9=B3=E5=8F=B0=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E9=93=BE=E6=8E=A5=E6=97=B6=E9=9C=80=E8=A6=81=E9=87=8D?= =?UTF-8?q?=E5=BB=BA=20identity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/maintain/forms/form.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/pages/maintain/forms/form.ts b/src/modules/pages/maintain/forms/form.ts index cb3b573..5cc3b2a 100644 --- a/src/modules/pages/maintain/forms/form.ts +++ b/src/modules/pages/maintain/forms/form.ts @@ -139,9 +139,12 @@ export class MaintainForm extends BI.Widget { this.isEdit = true; this.connectionName = this.model.connectionSelectedOne.connectionName; const connection = BI.clone(this.model.connectionSelectedOne); - const { database, driver } = connection.connectionData as ConnectionJDBC; - (connection.connectionData as ConnectionJDBC).database = getJdbcDatabaseType(database, driver).databaseType; - + connectionData = connection.connectionData as ConnectionJDBC; + const { database, driver } = connectionData; + connectionData.database = getJdbcDatabaseType(database, driver).databaseType; + if (this.model.isCopy) { + connectionData.identity = BI.UUID(); + } return connection; }