refactor: 前端应用骨架迁移至 zustand 并统一路由权限壳

This commit is contained in:
2026-08-05 17:10:30 +08:00
parent e21f0de427
commit d53bbd8176
33 changed files with 1055 additions and 687 deletions

View File

@@ -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>