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

同一页面内使用多个useForm造成页面卡死 #3451

Closed
4 tasks
yiayi opened this issue Dec 22, 2023 · 4 comments
Closed
4 tasks

同一页面内使用多个useForm造成页面卡死 #3451

yiayi opened this issue Dec 22, 2023 · 4 comments

Comments

@yiayi
Copy link

yiayi commented Dec 22, 2023

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

在生产环境中同一页面内使用多个useForm造成页面卡死。

复现 Bug

在生产环境中同一页面内使用多个useForm造成页面卡死。开发环境本地可以使用多个,但是打包到生产环境后多个useForm会造成页面卡死。

系统信息

  • 操作系统: win11
  • Node 版本:
  • 包管理器 (npm/yarn/pnpm) 及其版本:
@wangjue666
Copy link
Collaborator

demo示例也有多个useform呀 正常的呢 https://vben.vvbin.cn/#/comp/form/tabsForm

@qichangleixin
Copy link

你可能用了validate方法,现在版本有个bUG,你需要将useFormEvents.ts内validate方法的_nameList = nameList === Array.isArray(nameList) ? nameList : undefined;改为_nameList = Array.isArray(nameList) ? nameList : undefined;就可以了

@xachary
Copy link

xachary commented Dec 24, 2023

项目里用到了3个useForm实例,也用了validate,庆幸暂时没出bug……

@anncwb
Copy link
Collaborator

anncwb commented Apr 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label Apr 9, 2024
@anncwb anncwb closed this as completed Apr 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants