el-form rules 清除某一条校验提示语

ChaoTesKai / 2024-03-11 / 原文

this.$nextTick(()=>{
    this.$refs.ruleForm.clearValidate(['employeeId']);//关闭校验提示语
});//写在需要用到的方法里面,ruleForm为校验表单名称,employeeId为你要清除的哪一个校验