Home > front end >  Ask a about ant simple questions of the design
Ask a about ant simple questions of the design

Time:11-20

Have a subsystem, python + written react, react with the ant design technique, one form, submit code as follows,

HandleSubmit=(err, values)=& gt; {
Const {type, autoLogin}=this. The state;
if (! Err) {
Enclosing setState ({
SubLoading: true,
});

This. Props. Dispatch ({
Type: 'login/login',
Content: {
. Values,
The type,
AutoLogin,
},
}). Then (data=> {
https://bbs.csdn.net/topics/If (data. Errcode) {
Message. The error (data. The message)
}
Enclosing setState ({
SubLoading: false,
});
})
}
};

Another related:
@ connect (=({login, loading}) & gt; ({
The login,
Date: loading effects [' login/login '],
}))

Because I ant to design very not familiar, so hope elder help explain: after submit the form data such as user name password gone? Login/login was not found in python, the react of find the rough, also didn't find obvious about SQL statements,
Thank you very much
  • Related