mirror of https://gitee.com/answerdev/answer.git
fix: add preventdefault for form submit
This commit is contained in:
parent
bc9c4ef1b9
commit
225d766f9c
|
@ -103,7 +103,10 @@ const Index: FC = () => {
|
|||
});
|
||||
};
|
||||
|
||||
const postEmail = () => {
|
||||
const postEmail = (event?: any) => {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
const params: any = {
|
||||
e_mail: formData.e_mail.value,
|
||||
pass: formData.pass.value,
|
||||
|
|
Loading…
Reference in New Issue