From b121e05ec2d9b7ab16888e2033d22d2772a4f33d Mon Sep 17 00:00:00 2001 From: alan Date: Sun, 29 Sep 2019 10:37:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-10163=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E5=90=8C=E6=97=B6=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E6=A0=87=E9=A2=98=E5=90=8D=E7=A7=B0=EF=BC=8C?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9h2=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/constants/constant.ts | 2 +- src/modules/pages/connection/list/list_item/list_item.model.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index dc188d8..0be47ff 100644 --- a/src/modules/constants/constant.ts +++ b/src/modules/constants/constant.ts @@ -543,7 +543,7 @@ export const DATA_BASE_TYPES = [ databaseType: 'other', driver: 'org.h2.Driver', drivers: ['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'], - url: 'jdbc:h2://hostname:port/database', + url: 'jdbc:h2://${ENV_HOME}/../database', commonly: false, internal: true, type: 'other', diff --git a/src/modules/pages/connection/list/list_item/list_item.model.ts b/src/modules/pages/connection/list/list_item/list_item.model.ts index da9924c..1e5ab05 100644 --- a/src/modules/pages/connection/list/list_item/list_item.model.ts +++ b/src/modules/pages/connection/list/list_item/list_item.model.ts @@ -83,6 +83,9 @@ export class ListItemModel extends Model<{ connectionId: item.connectionName === oldName ? newName : item.connectionName, }; }); + if (this.model.connectionSelected === oldName) { + this.model.connectionSelected = newName; + } } return re;