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

[Bug 上报] wd-form 中 rules, 当 Promise.reject 参数为 Error 时, toast 为空 #667

Open
soxft opened this issue Oct 17, 2024 · 0 comments
Labels
🐞bug: need confirm 待确认的bug

Comments

@soxft
Copy link

soxft commented Oct 17, 2024

Wot Design Uni 版本号

1.3.12

平台

微信小程序

复现Demo地址(如不提供,issue将被直接关闭)

https://github.com/soxft/wot-ui-bug-report

重现步骤

输入 1-5 长度的字符

期望的结果是什么?

输出 正确的 错误信息

实际的结果是什么?

toast 为空

环境信息

No response

其他补充信息

RT, wd-form 中 rules, 当 Promise.reject 参数为 Error 时, toast 将显示空提示

Eslint 建议使用 Error 作为 reject 的参数 http://eslint.cn/docs/rules/prefer-promise-reject-errors

因为

将整个 Error 作为 message 进行返回

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug: need confirm 待确认的bug
Projects
None yet
Development

No branches or pull requests

1 participant