在使用element-UI表单验证中一直报错,'Error in event handler for “click”: “TypeError: Cannot read property ‘validate’ of undefined”',

经过反复检查比对,发现是一个低级错误的坑。

<el-button type="primary" class="login-btn" @click="loginSubmit('form')">登录</el-button>
@click="loginSubmit()"参数没有加单引号,
谨记:传参加单引号
 

 

相关文章:

  • 2022-01-06
  • 2021-08-12
  • 2021-12-24
  • 2022-02-15
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-11-22
  • 2021-07-09
  • 2021-12-02
相关资源
相似解决方案