fix(form): non-null predict for rulesRef (#4643)

pull/4647/head
叡山电车 2021-09-11 21:01:11 +08:00 committed by GitHub
parent fc0589c48f
commit 752642afaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ function useForm(
const validateInfos = reactive<validateInfos>({});
const rulesKeys = computed(() => {
return Object.keys(unref(rulesRef));
return rulesRef ? Object.keys(unref(rulesRef)) : [];
});
watch(