feat: jump faster on login
This commit is contained in:
parent
bdaf1e3bfb
commit
b24a870489
@ -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),
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user