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

form表单,调用appendSchemaByField后,提交表单时报错 #7372

Closed
mysticdcat opened this issue Oct 23, 2024 · 3 comments
Closed

form表单,调用appendSchemaByField后,提交表单时报错 #7372

mysticdcat opened this issue Oct 23, 2024 · 3 comments

Comments

@mysticdcat
Copy link

版本号:3.7.0
问题描述:form表单,调用appendSchemaByField后,提交表单时getValueType方法会报错,因为拿不到最新的schema

这里拿到的schema没有我appendSchema之后的那条数据,所以报错(提交表单时会调用validate方法,validate会调用getValueType)

错误截图:

image

image

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

zy

@mysticdcat
Copy link
Author

你好 请问会修复吗

@jeecgDeveloper
Copy link

最新版本已经修复。

具体修改如下:
src/components/Form/src/hooks/useForm.ts
image
src/components/Form/src/hooks/useFormEvents.ts
image
src/components/Form/src/types/form.ts
image
src/components/Form/src/BasicForm.vue
image
src/utils/index.ts
image

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