触发表单验证

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

原文地址:https://www.cnblogs.com/dudududadada/p/15556106.html