Browse Source

无form时校验

CzRger 1 year ago
parent
commit
e19135cbfd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/cus/CusFormColumn.vue

+ 2 - 2
src/components/cus/CusFormColumn.vue

@@ -366,8 +366,8 @@ export default defineComponent({
       }
     })
     onMounted(() => {
-      const formChildren: any = inject('cus-form-children')
-      formChildren.push(ref_cusFormColumn.value.$parent)
+      const formChildren: any = inject('cus-form-children', [])
+      formChildren?.push(ref_cusFormColumn.value.$parent)
     })
     return {
       ...toRefs(state),