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 let data = null
if(this.refs[this.state.keys[i]]) if(this.refs[this.state.keys[i]])
{ {
console.log("key",this.state.keys[i])
data = this.refs[this.state.keys[i]].submit(); data = this.refs[this.state.keys[i]].submit();
} }
else{
continue;
}
if(data) if(data)
{ {
temp.push(data) temp.push(data)
} }
else{ else{
console.log(7777)
return; return;
} }
} }

View File

@ -129,7 +129,22 @@ export default class add extends React.Component{
for(let i = 0;i < this.state.keys.length;i++) 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) if(data)
{ {
@ -137,9 +152,11 @@ export default class add extends React.Component{
} }
else{ else{
console.log(7777)
return; return;
} }
} }
console.log("第二部过了") console.log("第二部过了")