import { LockOutlined, UserOutlined } from "@ant-design/icons"; import { Button, Flex, Form, Input, message } from "antd"; import { useDispatch } from "react-redux"; import { useNavigate } from "react-router-dom"; import { login } from "../features/auth/authThunk"; export default function Login() { const dispatch = useDispatch(); const navigate = useNavigate(); const onFinish = async (values) => { const res = await dispatch(login(values)).unwrap(); message.success("登录成功"); navigate("/user/reserve"); }; return (

xxxx设备预约系统

} placeholder="请输入用户名" /> } placeholder="请输入密码" />
); }