diff --git a/src/components/JExpandTable.vue b/src/components/JExpandTable.vue index 6e95a6ba..6c0f3342 100644 --- a/src/components/JExpandTable.vue +++ b/src/components/JExpandTable.vue @@ -227,7 +227,7 @@ export default { submit () { const arr = [] for (const i in this.dataSource) { - if (this.$refs[`ruleForm${i}`][0]) { + if (this.$refs[`ruleForm${i}`] && this.$refs[`ruleForm${i}`][0]) { this.$refs[`ruleForm${i}`][0].validate(valid => { arr[i] = valid })