Skip to content

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

@soxft

Description

@soxft

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 进行返回

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions