import React from 'react' import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom' import { Layout, Menu, App as AntApp, theme } from 'antd' import { DashboardOutlined, BookOutlined, SettingOutlined } from '@ant-design/icons' import { ProjectList } from './pages/ProjectList' import { ProjectCreateEnhanced } from './pages/ProjectCreateEnhanced' import { ProjectCreateProgressive } from './pages/ProjectCreateProgressive' import { ProjectDetail } from './pages/ProjectDetail' import { SkillManagement } from './pages/SkillManagement' import { AgentManagement } from './pages/AgentManagement' import { ExecutionMonitor } from './pages/ExecutionMonitor' const { Header, Content } = Layout function AppRoot() { const currentPath = window.location.pathname const menuItems = [ { key: '/projects', icon: , label: '项目列表' }, { key: '/skills', icon: , label: 'Skills 管理' }, { key: '/agents', icon: , label: 'Agents 管理' }, ] return (
Creative Studio
(window.location.href = key)} style={{ flex: 1, border: 'none' }} />
} /> } /> } /> } /> {/* 执行监控路由 */} } /> {/* 项目详情页(包含所有功能:设置、全局设定、剧集创作、记忆系统、审核系统) */} } /> {/* 全局管理页面 */} } /> } />
) } export default AppRoot