-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Bug] <title>formData 初始化时和提交时的数据错误 #137
Comments
请完善unitedSchema配置信息,方便排查 |
unitedSchema为: 初始化时formData 为: {jdName:"xxx", jdErp:"xxx"} 提交保存时formData为: {jdName:"xxx", jdErp:"xxx", name: "xxx", erp: "xxx"} jdName, 和 jdErp两个字段已经不在formJson里面了提交时 fromData的数据没有删掉 |
drip-form默认不会删除数据的多余字段,配置的schema只会处理配置的字段。 |
#138 已经合并到主分支,下个版本支持配置ajvOptions prop 来自定义ajv配置
以上ajvOptions会自动删除多余字段。更多ajvOptions配置请参考ajv options |
Have you read the Contributing Guidelines on issues?
Prerequisites
Description
复现步骤:
当前表单没有jdName和jdErp的输入框 所以在获取时也不应该返回这两个值
期望返回formData的值为: {name: "xxx", erp: "xxx"}
Steps to reproduce
复现步骤:
Current behavior
导致我初始化时传入的formData会在 提交表单时带上 一直叠加formData的值
Expected behavior
期望返回formData的值只根据配置的表单返回即可, 多余的值并不需要
Your environment
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: