This commit is contained in:
姜棚 2021-12-10 15:58:10 +08:00
parent 5370e110c1
commit cc05c64733
2 changed files with 31 additions and 3 deletions

View File

@ -87,15 +87,26 @@ export default class add extends React.Component{
let data = null
if(this.refs[this.state.keys[i]])
{
console.log("key",this.state.keys[i])
data = this.refs[this.state.keys[i]].submit();
}
else{
continue;
}
if(data)
{
temp.push(data)
}
else{
console.log(7777)
return;
}
}

View File

@ -129,7 +129,22 @@ export default class add extends React.Component{
for(let i = 0;i < this.state.keys.length;i++)
{
let data = this.refs["step2-"+i].submit();
let data = null
if(this.refs[this.state.keys[i]])
{
console.log("key",this.state.keys[i])
data = this.refs[this.state.keys[i]].submit();
}
else{
continue;
}
if(data)
{
@ -137,9 +152,11 @@ export default class add extends React.Component{
}
else{
console.log(7777)
return;
}
}
console.log("第二部过了")