Update main.js

This commit is contained in:
姜棚 2021-11-30 01:42:02 +08:00
parent 479c9c1fb0
commit b8b860661a
1 changed files with 7 additions and 0 deletions

View File

@ -47,11 +47,18 @@ export default class form extends React.Component {
let formCompontent = dom.getElementsByClassName("form-compontent")
let rules_item = _.get(this.props.rules, prop)
let item = formCompontent[0].firstChild;
console.log("shuru")
console.log(this.props.rules)
console.log(prop)
console.log(item)
console.log(rules_item)
if(!rules_item)
{
return
}
for (let j = 0; j < rules_item.length; j++) {
if (rules_item[j].type == "required") {