登录初步

This commit is contained in:
禺狨
2023-03-23 16:42:01 +08:00
parent 4e03c1d82d
commit 4b965f26f5
3 changed files with 16 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ const LoginPage: React.FC = () => {
const getUser = () => {
user.detail().then((res: any) => {
const data = res.data;
dispatch(logoutAction(data.user));
dispatch(loginAction(data.user));
setLoading(false);
navigate("/");
});