登录及相关逻辑

This commit is contained in:
禺狨
2023-03-23 17:13:57 +08:00
parent 4b965f26f5
commit a3da93be82
3 changed files with 8 additions and 3 deletions

View File

@@ -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("/");
});