mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 01:42:52 +08:00
登录样式优化
This commit is contained in:
parent
d1d4d2c3bd
commit
33b5372f39
@ -58,7 +58,7 @@ export const Login: React.FC = () => {
|
||||
.then((res: any) => {
|
||||
const token = res.data.token;
|
||||
setToken(token);
|
||||
setLoading(false);
|
||||
|
||||
getUser();
|
||||
})
|
||||
.catch((e) => {
|
||||
@ -74,6 +74,7 @@ export const Login: React.FC = () => {
|
||||
dispatch(IsLoginActionCreator());
|
||||
dispatch(SetUserActionCreator(data.user));
|
||||
dispatch(SetPermisssionsActionCreator(data.permissions));
|
||||
setLoading(false);
|
||||
navigate("/");
|
||||
});
|
||||
};
|
||||
@ -134,6 +135,7 @@ export const Login: React.FC = () => {
|
||||
style={{ width: 400, height: 54 }}
|
||||
type="primary"
|
||||
onClick={loginSubmit}
|
||||
loading={loading}
|
||||
>
|
||||
立即登录
|
||||
</Button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user