feat: jump faster on login

This commit is contained in:
Paul Pan 2023-12-23 18:02:51 +08:00
parent bdaf1e3bfb
commit b24a870489

View File

@ -28,7 +28,7 @@ export default function LoginPage() {
auth.login(
values.username,
values.password,
() => void msg.success("登录成功").then(() => navigate("/")),
() => void msg.open({ type: "success", content: "登录成功", duration: 1 }).then(() => navigate("/")),
(err) => setErrMsg(err),
);
};