feat: jump faster on login
This commit is contained in:
parent
bdaf1e3bfb
commit
b24a870489
@ -28,7 +28,7 @@ export default function LoginPage() {
|
|||||||
auth.login(
|
auth.login(
|
||||||
values.username,
|
values.username,
|
||||||
values.password,
|
values.password,
|
||||||
() => void msg.success("登录成功").then(() => navigate("/")),
|
() => void msg.open({ type: "success", content: "登录成功", duration: 1 }).then(() => navigate("/")),
|
||||||
(err) => setErrMsg(err),
|
(err) => setErrMsg(err),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user