Antd form form submit reload interface problem

problem description

When

antd form submit is submitted, when the url access address is xxx.com/-sharp/, the submission is always unsuccessful, the page is reloaded, and the address bar url will be changed to xxx.com/?-sharp/ before the data can be submitted. Has anyone encountered this problem?

as shown in figure: before submission

:

Form:

after the address bar is changed, the data can be submitted normally. If the address bar is accessed for the first time, it can be accessed normally by xxx.com/?-sharp/. Excuse me, what is the reason at this time?

Sep.08,2021

paste the code, or I don't know why


has been resolved. In the form form callback function, first stop the browser's default behavior: e.preventDefault ();. I don't know why, but I can do it later

.
Menu