From 38d19215ad522568b3c72bd86958123e478b7cb1 Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Mon, 25 Sep 2023 12:06:24 +0800 Subject: [PATCH] fix(form-item): initialValue issue in resetField --- components/form/FormItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 1f8a1eb2ef..60189eca56 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -327,7 +327,7 @@ export default defineComponent({ const value = fieldValue.value; const prop = getPropByPath(model, namePath.value, true); if (Array.isArray(value)) { - prop.o[prop.k] = [].concat(initialValue.value); + prop.o[prop.k] = [].concat(initialValue.value ?? []); } else { prop.o[prop.k] = initialValue.value; }