feat(notebook): pre-select notebook source when notebook_id is in URL

This commit is contained in:
xuhd committed 2026-06-05 13:35:35 +08:00
1 parent e689493723
commit e53c1a0f7b
4 files changed
+30 -5

No files matched your search

@@ -42,7 +42,10 @@ export default function NotebookAIWritingPage() {
{/* 主体:AIWritingPage 完整组件,含 context providers */}
<div className="flex-1 min-h-0 overflow-hidden">
<AIWritingPage hideAdvancedFields />
<AIWritingPage
hideAdvancedFields
initialNotebookId={notebookId ? Number(notebookId) : undefined}
/>
</div>
</div>
);