From e8550728d1f58c55deb9d5c26bd5942a9adf9720 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 13 Sep 2022 13:49:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(form):=20=E5=BD=93=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E4=B8=BA0=E6=97=B6=EF=BC=8Cselect=20=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E9=80=89=E9=A1=B9=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/form/src/fields/Select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/fields/Select.vue b/packages/form/src/fields/Select.vue index 159c6f355..d9f0c0548 100644 --- a/packages/form/src/fields/Select.vue +++ b/packages/form/src/fields/Select.vue @@ -297,7 +297,7 @@ export default defineComponent({ onBeforeMount(() => { if (!props.model) return; const v = props.model[props.name]; - if (Array.isArray(v) ? v.length : v) { + if (Array.isArray(v) ? v.length : typeof v !== 'undefined') { getInitOption().then((data) => { options.value = data; });