Closed nighca closed 4 years ago
Provide error info along with hasError in the return value of method validate of FieldState & FormState:
hasError
validate
FieldState
FormState
const res = await state.validate() if (res.hasError) { alert(res.error) // put the error info in field `res.error` return } submit(res.value)
Provide error info along with
hasError
in the return value of methodvalidate
ofFieldState
&FormState
: