feat(server): 添加暖记日记管理菜单种子数据 + 图标注册
- 新增迁移 m20260602_000301_diary_menu_seed - 插入'日记管理'目录菜单 (BookOutlined, sort=50) - 子菜单: 班级管理/日记审核/主题管理/贴纸管理 - 关联 admin + teacher 角色 (menu_roles) - 图标注册: BookOutlined, ScheduleOutlined, SmileOutlined
This commit is contained in:
@@ -49,6 +49,10 @@ import {
|
||||
SolutionOutlined,
|
||||
SwapOutlined,
|
||||
WifiOutlined,
|
||||
// 暖记日记模块
|
||||
BookOutlined,
|
||||
ScheduleOutlined,
|
||||
SmileOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
@@ -99,6 +103,11 @@ export const iconRegistry: Record<string, ReactNode> = {
|
||||
SolutionOutlined: <SolutionOutlined />,
|
||||
SwapOutlined: <SwapOutlined />,
|
||||
WifiOutlined: <WifiOutlined />,
|
||||
|
||||
// 暖记日记模块
|
||||
BookOutlined: <BookOutlined />,
|
||||
ScheduleOutlined: <ScheduleOutlined />,
|
||||
SmileOutlined: <SmileOutlined />,
|
||||
};
|
||||
|
||||
export function getIcon(name?: string): ReactNode {
|
||||
|
||||
Reference in New Issue
Block a user