Vue form verification, the form cannot pass the rules verification problem after filling out the form

The form verification uses the form verification rules of the ElementUI official website, but the form still fails to pass the verification after filling in, which requires corresponding inspections

1. Check the rules and ref. The names of rules and ref can be defined freely, but make sure that what is written in this block is consistent with what is defined in data

2. Check that the prop value in the <el-form-item> tag is consistent with the bound attribute, such as prop="title", and the attribute bound to the rules rule in data must also be the title attribute

3. Check whether the form is consistent, for example: whether model="Form" is consistent with the form name defined in data

 

Guess you like

Origin blog.csdn.net/kobe_IT/article/details/131303077
Recommended