User login – form authentication – basic authentication
Configure Form validation
- The EL-Form component must bind Model to the form data object
- Bind the prop property to the form item el-form-item that you want to validate
- The HI validation rule is configured through the rules property of the EL-Form component
User login – form authentication – manual authentication
Click the login button to trigger form validation
- Set ref to el-Form
- The EL-Form component is obtained by ref, and its validate is called for verification
User login – form authentication – custom authentication
Four,
Encapsulate the request API
src —> api —> user.js