触发对整个表单的验证:this.$refs.userForm.validate(); 触发对表单部分字段的验证:this.$refs.userForm.validateField("password");