增加充值审计日志
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
MenuFoldOutlined, MenuUnfoldOutlined, SwapOutlined,
|
||||
SunOutlined, MoonOutlined, DesktopOutlined, GiftOutlined, ShoppingCartOutlined, ApartmentOutlined, MobileOutlined,
|
||||
BookOutlined, TrophyOutlined, ShopOutlined,
|
||||
SafetyCertificateOutlined,
|
||||
SafetyCertificateOutlined, FileSearchOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { useNavigate, useLocation, Outlet } from 'react-router-dom';
|
||||
import { getUser, clearAuth, type AuthUser } from '../store/auth';
|
||||
@@ -115,6 +115,9 @@ export default function MainLayout({ onLogout }: { onLogout?: () => void }) {
|
||||
if (can('user:view')) {
|
||||
systemItems.push({ key: '/users', label: '用户管理', icon: <TeamOutlined /> });
|
||||
}
|
||||
if (user.role === 'super_admin') {
|
||||
systemItems.push({ key: '/audit-logs', label: '审计日志', icon: <FileSearchOutlined /> });
|
||||
}
|
||||
if (systemItems.length > 0) {
|
||||
menuItems.push({ key: 'group-system', type: 'group', label: '系统', children: systemItems });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user