From d97d5d1c4f51154367c5f8e485a16a303c3f75f1 Mon Sep 17 00:00:00 2001 From: alan Date: Sun, 29 Sep 2019 15:14:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-10162=20=E4=BF=AE=E6=94=B9=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=80=89=E6=8B=A9=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/maintain/forms/components/form.jdbc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index 9cc9c3f..e9d16d4 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -681,7 +681,7 @@ export class FormJdbc extends BI.Widget { value: item, }; })); - this.form.schema.setValue(value ? value : schemas[0]); + this.form.schema.setValue(value && schemas.some(item => item === value) ? value : schemas[0]); } }