mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 18:41:04 +08:00
登录及相关逻辑
This commit is contained in:
@@ -80,7 +80,7 @@ const LoginPage: React.FC = () => {
|
||||
const getUser = () => {
|
||||
user.detail().then((res: any) => {
|
||||
const data = res.data;
|
||||
dispatch(loginAction(data.user));
|
||||
dispatch(loginAction(data));
|
||||
setLoading(false);
|
||||
navigate("/");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user