From 4f09f02a5d928e66696b0cf3f0565d0c29903766 Mon Sep 17 00:00:00 2001 From: "Austin.Duan" Date: Fri, 17 Mar 2023 15:13:51 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-90357=20fix:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E3=80=81=E7=AB=AF=E5=8F=A3=E5=90=8E=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/maintain/forms/components/form.jdbc.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 869f63d..7db6718 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -1015,6 +1015,14 @@ export class FormJdbc extends BI.Widget { watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'), allowBlank: false, value: sshIp || 'hostname', + listeners: [ + { + eventName: BI.Editor.EVENT_CHANGE, + action: () => { + this.form.sshSecret.setValue(""); + } + } + ] }, ], }, @@ -1038,6 +1046,14 @@ export class FormJdbc extends BI.Widget { valueRangeConfig, ], value: String(sshPort || 22), + listeners: [ + { + eventName: BI.Editor.EVENT_CHANGE, + action: () => { + this.form.sshSecret.setValue(""); + } + } + ] }, ], },