refactor: 前端应用骨架迁移至 zustand 并统一路由权限壳
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { Form, Input, Button, Card, Typography } from 'antd';
|
||||
import { UserOutlined, LockOutlined } from '@ant-design/icons';
|
||||
import api from '../../api';
|
||||
import { BrandLogo } from '../../components/BrandLogo';
|
||||
import { message } from '../../ui/app-message';
|
||||
import { findRoleAwareLandingPath } from '../../auth/menu-policy';
|
||||
import { usePermissionStore } from '../../store/permission/permissionStore';
|
||||
@@ -59,7 +60,11 @@ const LoginPage: React.FC = () => {
|
||||
}}
|
||||
>
|
||||
<div style={{ textAlign: 'center', marginBottom: 32 }}>
|
||||
<Title level={3} style={{ margin: 0, fontWeight: 600, color: '#1d1d1f' }}>
|
||||
<BrandLogo size={48} />
|
||||
<Title
|
||||
level={3}
|
||||
style={{ margin: '14px 0 0', fontWeight: 600, color: '#1d1d1f' }}
|
||||
>
|
||||
学生管理系统
|
||||
</Title>
|
||||
<p style={{ color: '#86868b', marginTop: 8 }}>学生综合管理平台</p>
|
||||
|
||||
Reference in New Issue
Block a user