欢迎回来
请登录您的账户以继续
ERP Platform v0.1.0 · Powered by Rust + React
import { useNavigate } from 'react-router-dom'; import { Form, Input, Button, message, Divider } from 'antd'; import { UserOutlined, LockOutlined, SafetyCertificateOutlined } from '@ant-design/icons'; import { useAuthStore } from '../stores/auth'; export default function Login() { const navigate = useNavigate(); const login = useAuthStore((s) => s.login); const loading = useAuthStore((s) => s.loading); const [messageApi, contextHolder] = message.useMessage(); const onFinish = async (values: { username: string; password: string }) => { try { await login(values.username, values.password); messageApi.success('登录成功'); navigate('/'); } catch (err: unknown) { const errorMsg = (err as { response?: { data?: { message?: string } } })?.response?.data?.message || '登录失败,请检查用户名和密码'; messageApi.error(errorMsg); } }; return (
新一代模块化企业资源管理平台
身份权限 · 工作流引擎 · 消息中心 · 系统配置
{/* 底部特性点 */}请登录您的账户以继续
ERP Platform v0.1.0 · Powered by Rust + React