fix(form-item): initialValue issue in resetField (#7091)

pull/7101/head
Northerner 2023-11-11 09:32:06 +08:00 committed by GitHub
parent eae2b5d412
commit 672b9917f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,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;
}