2022-07-08弹窗,新增与编辑的时候清除一下红色验证提示
2022-07-08 本文已影响0人
swp小小喀嚓鱼


用的是ref的值,下面用的值是saicTemplateFormRef字符串
if (this.$refs['saicTemplateFormRef']) {
this.$refs['saicTemplateFormRef'].clearValidate()
}
为什么需要if判断一下,因为它会报错,undefined ,没有clearValidate这个方法