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

调用submit方法,在控制台上会打印一个错误信息,无法进行catch #40

Closed
lianyzhou opened this issue May 6, 2019 · 2 comments
Labels

Comments

@lianyzhou
Copy link

如图所示,点击提交时,会产生一个无法catch到的exception
image
image
image

是否可以去掉此exception或者配置成SchemaForm的一个选项,throwException: true/false

@janryWang
Copy link
Collaborator

这个问题先hold住吧,不阻塞应用,我现在正在思考uform的调试模式和生产模式的差异化控制。是一个整体型的方案,单纯通过一个throwException来解决问题太过于单点。

@lianyzhou
Copy link
Author

已经找到解决办法了,可以在await模式调用submit函数和validate函数时,加try catch进行解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants