The problem that form.validateFields does not display validation information

When I was writing the page today, I used the form of antD. After wrapping it with form.getFieldDecorator, the verification information was not prompted for life and death. , none of them took effect, the console will print an error message, but it will not be displayed on the formItem like the following...

 Paste part of the project code:

Click the submit button to get the form data:

 The console can also print out error messages:

But there is no response on the page... There should be a prompt message below.

I still haven't found a solution so far, please pay attention and try again later^^

Guess you like

Origin blog.csdn.net/BUG_CONQUEROR_LI/article/details/126853603