diff --git a/frontend-web/src/pages/NotebookAIWritingPage.tsx b/frontend-web/src/pages/NotebookAIWritingPage.tsx new file mode 100644 index 00000000..bc49e2af --- /dev/null +++ b/frontend-web/src/pages/NotebookAIWritingPage.tsx @@ -0,0 +1,49 @@ +import { useSearchParams } from 'react-router-dom'; +import AIWritingPage from '@/open-canvas/pages/AIWritingPage'; + +export default function NotebookAIWritingPage() { + const [searchParams] = useSearchParams(); + const notebookId = searchParams.get('notebook_id'); + + return ( +
+ {/* 索财笔记 Header */} +
+ {/* 品牌 */} +
+
+ 索 +
+ 索财笔记 +
+ + {/* 分隔线 */} +
+ + {/* 空间 ID */} + {notebookId && ( +
+ 空间 + + {notebookId} + +
+ )} + + {/* 弹性占位 */} +
+ + {/* 笔记标签 */} +
+ 📒 + 这是我的笔记 +
+
+ + {/* 主体:AIWritingPage 完整组件,含 context providers */} +
+ +
+
+ ); +} diff --git a/frontend-web/src/pages/NotebookRoutes.tsx b/frontend-web/src/pages/NotebookRoutes.tsx new file mode 100644 index 00000000..cbb1342d --- /dev/null +++ b/frontend-web/src/pages/NotebookRoutes.tsx @@ -0,0 +1,10 @@ +import { Route, Routes } from 'react-router-dom'; +import NotebookAIWritingPage from './NotebookAIWritingPage'; + +export default function NotebookRoutes() { + return ( + + } /> + + ); +} diff --git a/frontend-web/src/pages/PageRoutes.tsx b/frontend-web/src/pages/PageRoutes.tsx index 41f88499..96400566 100644 --- a/frontend-web/src/pages/PageRoutes.tsx +++ b/frontend-web/src/pages/PageRoutes.tsx @@ -11,6 +11,7 @@ import StrategyRoutes from "./StrategyRoutes"; import Header from "@/strategy-components/Header"; import OpenCanvasRoutes from "@/open-canvas/routes/OpenCanvasRoutes"; import RoundtableRoutes from "./RoundtableRoutes"; +import NotebookRoutes from "./NotebookRoutes"; function PageLayout() { const [collapsed, setCollapsed] = useState(false); @@ -68,6 +69,7 @@ function PageLayout() { } /> } /> } /> + } />