You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(valid) executes once when I click log in
What is actually happening?
console.log(valid) executes twice when I click log in without notifying the code that there is a problem
Additional comments
Engilsh
Why is the validate method on the el-form designed like this? if there is a problem with the code block in the IF, the validate method will be executed twice, instead of directly telling the developer that there is a problem with the code, will this lead to the logic inconsistency and affect whether the user is notified of the problem or the problem with the code
Chinese
el-form上的validate方法为什么这样设计呢,如果if里面的代码块存在问题的时候会出现执行两次validate的方法,并不是直接告诉开发者出现代码问题了,这样会不会导致逻辑的不通顺,影响通知用户是否是自己的问题还是代码的问题
The text was updated successfully, but these errors were encountered:
Bug Type:
Component
Environment
3.2.41
2.2.19
win10
Vite
Reproduction
Related Component
el-form
Reproduction Link
Element Plus Playground
Steps to reproduce
后台管理
What is Expected?
console.log(valid) executes once when I click log in
What is actually happening?
console.log(valid) executes twice when I click log in without notifying the code that there is a problem
Additional comments
Engilsh
Why is the validate method on the el-form designed like this? if there is a problem with the code block in the IF, the validate method will be executed twice, instead of directly telling the developer that there is a problem with the code, will this lead to the logic inconsistency and affect whether the user is notified of the problem or the problem with the code
Chinese
el-form上的validate方法为什么这样设计呢,如果if里面的代码块存在问题的时候会出现执行两次validate的方法,并不是直接告诉开发者出现代码问题了,这样会不会导致逻辑的不通顺,影响通知用户是否是自己的问题还是代码的问题
The text was updated successfully, but these errors were encountered: