Skip to content

Form validate验证通过,不执行then,只执行catch #3309

@geeklibin

Description

@geeklibin
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.2

Environment

windows10 专业版,Chrome版本 87.0.4280.88(正式版本) (64 位),Vue3.0.0

Reproduction link

Steps to reproduce

使用validate验证表单。校验完成不执行then,仅执行catch:
catch中打印error的结果

{
errorFields: []
outOfDate: true
values: {old_pswd: "123123", new_pswd: "123123", confirm_pswd: "123123"}
}

What is expected?

根据文档所说,验证校验通过应该执行then,而不是catch

What is actually happening?

使用validate验证表单。校验完成不执行then,仅执行catch:
catch中打印error的结果

{
errorFields: []
outOfDate: true
values: {old_pswd: "123123", new_pswd: "123123", confirm_pswd: "123123"}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions