From e8a961acfe7e029e2edf77b9d47696e4a9a9eac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=99=93=E4=BA=91?= Date: Sun, 24 Apr 2022 10:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9dict-select=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/shared/widget/dict-select/dict-select.widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/widget/dict-select/dict-select.widget.ts b/src/app/shared/widget/dict-select/dict-select.widget.ts index d8906295..fced5406 100644 --- a/src/app/shared/widget/dict-select/dict-select.widget.ts +++ b/src/app/shared/widget/dict-select/dict-select.widget.ts @@ -39,6 +39,6 @@ export class DictSelectWidget extends ControlWidget implements OnInit { } reset(value: any) { - this.setValue(value); + if (value) this.setValue(value); } }