fix 79597
This commit is contained in:
@@ -393,7 +393,16 @@ export default {
|
||||
// 收集所有表单信息
|
||||
let formDataList = []
|
||||
if (isValidate) {
|
||||
formDataList = await this.validateFormList(this.processInfoForm, this.approvalInfoForm, this.baseInfoForm)
|
||||
// 记录表单验证是否报错
|
||||
let err = null
|
||||
formDataList = await this.validateFormList(this.processInfoForm, this.approvalInfoForm, this.baseInfoForm).catch(() => {
|
||||
err = true
|
||||
return []
|
||||
})
|
||||
// 如果有错误就跳转表单
|
||||
if (err !== null) {
|
||||
throw new Error('base')
|
||||
}
|
||||
} else {
|
||||
formDataList = [
|
||||
this.processInfoForm.getFieldsValue(),
|
||||
|
||||
Reference in New Issue
Block a user