表单验证
1.
formRules: { newPassword: [ { required: true, message: '请输入新密码', trigger: 'blur' } ], oldPassword: [ { required: true, message: '请输入当前密码', trigger: 'blur' } ], retypePassword: [ { required: true, validator: validateRetypePassword, trigger: 'blur' } ] }, 2.