背景: 在v-for循环中加v-if 展示子组件 报错 用 $refs 调用子组件方法时 出现 undefined this.$refs.createForm.submitForm() 正确解决: 需要指定 index this.$refs.createForm[0].submitForm()