Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表单校验dynamicRules 无法 使用失去焦点后校验 trigger: 'blur' #6604

Closed
jhaso1988 opened this issue Sep 9, 2023 · 5 comments
Closed

Comments

@jhaso1988
Copy link

版本号:[jeecgboot-vue3] 3.5.4
问题描述:

系统管理-》用户管理-〉新增或者修改 ,用户名、密码、手机号、邮箱等都是使用dynamicRules 进行校验,当值改变就校验导致该页面有大量请求,改成失去焦点校验,不生效

截图&代码:

image
image
image

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@jhaso1988
Copy link
Author

  • 已解决

@jhaso1988 jhaso1988 reopened this Sep 11, 2023
@jhaso1988 jhaso1988 reopened this Sep 12, 2023
@jhaso1988
Copy link
Author

按照 vbenjs/vue-vben-admin#1693 文章解决,测试发现blur 失效的问题解决了,目前发现表单验证-自定义校验会执行两次

@zhangdaiscott
Copy link
Member

zy

@liaozhiyang
Copy link
Contributor

已解决,下一版本更新。
触发两次的问题,你需要在src/components/Form/src/components/FormItem.vue文件,按照下图注释两行代码。
image

@jhaso1988
Copy link
Author

jhaso1988 commented Sep 22, 2023 via email

@zhangdaiscott zhangdaiscott transferred this issue from jeecgboot/JeecgBoot-vue3 Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants