fix(form): non-null predict for rulesRef (#4643)
parent
fc0589c48f
commit
752642afaf
|
@ -122,7 +122,7 @@ function useForm(
|
||||||
const validateInfos = reactive<validateInfos>({});
|
const validateInfos = reactive<validateInfos>({});
|
||||||
|
|
||||||
const rulesKeys = computed(() => {
|
const rulesKeys = computed(() => {
|
||||||
return Object.keys(unref(rulesRef));
|
return rulesRef ? Object.keys(unref(rulesRef)) : [];
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
Loading…
Reference in New Issue