From 8ffe88ea8b71a2579d07cbce80bd31c5a28490c8 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 9 Nov 2022 15:08:02 +0800 Subject: [PATCH] =?UTF-8?q?JDictSelectTag=20=E7=9B=AE=E5=89=8D=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=98=BE=E7=A4=BA=E6=9C=89=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?option=E9=80=89=E6=8B=A9=E9=80=89=E9=A1=B9=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E4=BC=9A=E6=AD=A3=E7=A1=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=88=B0=E7=BB=93=E6=9E=9C=E4=B8=8A=20#226?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/component/useFormItem.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/component/useFormItem.ts b/src/hooks/component/useFormItem.ts index 26d871f..8f9eeb9 100644 --- a/src/hooks/component/useFormItem.ts +++ b/src/hooks/component/useFormItem.ts @@ -31,8 +31,8 @@ export function useRuleFormItem(props: T, key: keyof T = ' const state: any = computed({ get() { - //修复多选时空值显示问题 - return !innerState.value || innerState.value === '' ? [] : innerState.value; + //修复多选时空值显示问题(兼容值为0的情况) + return innerState.value == null || innerState.value === '' ? [] : innerState.value; }, set(value) { if (isEqual(value, defaultState.value)) return;