element 改变select form 清除表单验证

报错

TypeError: Cannot read property 'resetFields' of undefined

resetForm(formName)

{
  if  ( this .$refs[formName]!==undefined) {
      this .$refs[formName].resetFields();
  }
}

猜你喜欢

转载自www.cnblogs.com/luckyShuang/p/11937572.html